redux-logic
redux-logic copied to clipboard
Redux middleware for organizing all your business logic. Intercept actions and perform async processing.
Is it possible to have more than one action in a success or fail type? I would like to trigger both actions when a fetch has failed. ``` processOptions: {...
Can anyone, please, provide some example implementation of using redux-logic and server side rendering (SSR) ?
Currently converting some Redux Sagas into Logics and have run into one issue: We've got a Saga that runs another Saga within it (this Saga is also sometimes triggered independently),...
I have a form which I want to validate on the client side, aswell as on the server side. The client side validation is handled by the `redux-form` package and...
I love the feature of `processOptions` as it removes quite a bit of boilerplate in our repos. However, we found that when `successType` is defined, we cannot call dispatch as...
I have the following logic: ``` export const updateSomething = createLogic({ type: actions.updateSomething, async process({ getState, action }, dispatch, done) { const { data } = await axios.post('url'); done(data); }...
Hi, This lib looks super nice and I am tempting to integrate it into a project. I would like to know if you have an opinion on the best approach...
In this following code: ``` const ACTION_TYPE_A = 'action_type_a'; const firstLogic = createLogic({ type: ACTION_TYPE_A, process: ({ action }) => { console.log("first logic"); // return something } }); const secondLogicWithDebounce...
Hello, I have oAuth authorization in my app. But I'm confused with the implementation of refresh token service. At the moment I created instance of axios and apply to logic...
Since updating to version 2.0.0 we have some failing tests. I have produced a reduced example below: ```js import configureStore from "redux-mock-store"; import { createLogicMiddleware, createLogic } from "redux-logic"; const...