I hereby claim:
- I am whichsteveyp on github.
- I am steveyp (https://keybase.io/steveyp) on keybase.
- I have a public key ASA-vzQSWq8PKNfyfJCQt7tx1SOAqF5RVaKDRrTOGubYXAo
To claim this, I am signing this object:
| /* | |
| Currently, I use `readResources(...)` for two main reasons: | |
| 1. easy conformity from my API responses into the reducers in a "resourceful" way, | |
| along with all the great `getStatus()` and `meta` and `lists` benefits that each | |
| slice has | |
| 2. it also makes XHRs for me and updates the above automatically for me | |
| An issue with this is any time I need to control my _own_ XHRs, I loose out on the |
| import React from 'react'; | |
| import Downshift from 'downshift'; | |
| class Foo extends React.Component { | |
| render() { | |
| return <Downshift onChange={this.onChange}> | |
| {(controls) => { | |
| const {isOpen, inputValue, selectedItem, ...funcs} = controls; | |
| return <div> |
| import actionTypes from 'redux-resource'; | |
| const createActionCreators = (options = {}) => { | |
| const { crudType, resourceName } = options; | |
| const uppercaseCrud = crudType ? crudType.toUpperCase() : ''; | |
| const isValidCrudType = | |
| uppercaseCrud === 'UPDATE' || uppercaseCrud === 'DELETE' || | |
| uppercaseCrud === 'READ' || uppercaseCrud === 'CREATE'; |
| { | |
| "exclude": [ | |
| "node_modules", | |
| "**/*.js" | |
| ] | |
| } |
I hereby claim:
To claim this, I am signing this object: