redux-logic
redux-logic copied to clipboard
Redux middleware for organizing all your business logic. Intercept actions and perform async processing.
We need to dispatch action in `cancelled$` observable subscriber. Is it OK? Our usecase is: ``` process({ cancelled$ }, dispatch, done) { const pid = Math.random(); // progress id dispatch(startProgress(pid));...
Our usecase is that we add toasts with payload `{ "type": "TOASTS_ADD", "payload" { "id": , "timeout": , "message": } }` and remove them with payload `{ "type": "TOASTS_REMOVE", "payload":...
I am using [redux-connect](https://www.npmjs.com/package/redux-connect) to load initial data. When using thunks, I can simply do: ```js const resolve = [{ promise: ({params, store}) => store.dispatch(init(params.layout)) }]; ``` `store.dispatch` returns a...
Is it possible to call the `done` callback automatically, if the `process` function is executed or the returned promise is resolved? I am revamping my current app to use redux-logic,...
I am using `redux-logic-test` for testing. I have a logic that initializes the socket and dispatches actions. `warnTimeout` is set to `0`. In my unit tests, I call `await store.whenComplete()`,...
Not sure if this is the correct place for this. I am currently using redux logic and i'm trying to deal with a paginated API. I am trying to pass...
It would be great to have retryWhen policy as a configuration to createLogic. So, it will be easier to implement retry policy without digging into observables. Ideally, just expose predicate...
I'm thinking it might be nice to create a separate helper project which will help make it easy to create mock stores for integration level tests. It would basically let...
Please include all import statement in examples. Dont assume we know where things are being imported from. Also, just another point.. this is awesome. Also, any chance you can make...
I wanted to see if anyone has any thoughts about this. I'm thinking it would be best to deprecate the process hook's single-dispatch mode which comes into play when you...