- Notifications
You must be signed in to change notification settings - Fork55
A set of standard actions and reducers for Redux CRUD Applications
License
Versent/redux-crud
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Looking for a new mantainer: See#77
Redux CRUD is a convention driven way of building CRUD applications using Redux. After building several Flux applications we found that we always end up creating the same action types, actions and reducers for all our resources.
Redux CRUD gives you a standard set of:
- action types: e.g.
USER_UPDATE_SUCCESS - actions: e.g.
updateSuccess,updateError - reducers: for the action types above e.g.
updateSuccess
When building an app you might have resources likeusers,posts andcomments.
You'll probably end up with action types for them like:
USERS_FETCH_SUCCESSPOSTS_FETCH_SUCCESSCOMMENTS_FETCH_SUCCESS
And action creators like:
users.fetchSuccessposts.fetchSuccesscomments.fetchSuccess
There's obvious repetition there. Redux CRUD aims to remove this boilerplate by providing strong conventions on naming and processing data.
Redux-crud provides two stores:
- List. A plain JS array. This preserves the order of records.
- Map. A JS object where records are indexed by key. This provides faster writes and lookups.
npm testYou can seea basic example here
About
A set of standard actions and reducers for Redux CRUD Applications
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors15
Uh oh!
There was an error while loading.Please reload this page.