@bernatfortet/redux-entities
v0.0.53
Published
Redux Entities helpers
Downloads
52
Readme
USAGE
- Create a entitites file
- Import all these methods
- Re-export them in order to group them with other entity related actions you might have
- you must have immutable path
Set initial state from entities schema
const INITIAL_STATE = entitiesSchema
Reducer
Pass reducing cases
import { entitiesReducingCases } from 'vendor/b-entities' export default createReducer(INITIAL_STATE, entitiesReducingCases )
Actions
import { storeEntities, storeNewEntity, storeEntityData, removeEntity, removeEntityData } from '@bernatfortet/redux-entities' import createEntitiesReducer from '@bernatfortet/redux-entities/reducer'
export { storeEntities, storeNewEntity, storeEntityData, removeEntity, removeEntityData }