A Redux utility to automate creation of REST actions and reducers specifically for LoopBack APIs. Version 0.3.5, no recent updates since 2019. It integrates with redux-thunk, react-redux, axios, and randomstring. Differentiators: automatic resource name mapping for LoopBack endpoints, built-in error handling via push/notifError callbacks, and TypeScript support. However, it's not actively maintained and may lack modern Redux best practices.
npm install redux-rest-helper-for-loopbackNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to create actions and reducer for a resource named 'TEST' with an empty path, push/notifError stubs, and dispatch getAll action.
Consider migrating to Redux Toolkit and React Query for modern REST handling.
Ensure push is a function that returns a Redux action for navigation, and notifError dispatches an error notification.
Always use `red.getReducer()` when adding to combineReducers.
Run npx install-peerdeps redux-rest-helper-for-loopback or manually install peer deps.
Wrap your app with <Provider store={store}> and ensure connected components receive dispatch via connect or hooks.Apply thunk middleware: createStore(rootReducer, applyMiddleware(thunk))
Ensure first argument to reducerCreator is a non-empty string matching the resource name used in actionCreator.