redux-resx-feathers-middleware
Middleware for redux-resx using
feathers-client
.
npm install --save redux-resx-feathers-middleware
Usage
; ;; ; // Setup your feathers app - probably in a different fileconst app = ; { return ;}
Websocket support
Not yet - all we'd need to add is websocket events handlers that fire receiver actions
Pagination (v0.1.0)
WARNING: This API may change. I'd like feedback on it :)
Pagination is handled by installing a resultReducer
on your resource.
; const paginate = ;const users = ;
This will add a pagination
object to your resource state:
Here is an exmaple when using it in a component:
;;; ; const UsersPage = React; { return users: users ;} const find: findUsers = usersactions; mapStateToProps findUsersUsersPage;