redux-logic icon indicating copy to clipboard operation
redux-logic copied to clipboard

Redux middleware for organizing all your business logic. Intercept actions and perform async processing.

Results 62 redux-logic issues
Sort by recently updated
recently updated
newest added

I created logic to verify something after 10 seconds, for instance: ```javascript export const validateSomething = createLogic({ name: 'validateSomething', type: VALIDATE_SOMETHING, cancelType: CANCEL_VALIDATE_SOMETHING, process({ getState, action, cancelled$ }, dispatch, done)...

I hadn't looked at Redux-Logic in a while, but was pointed back to it in a Twitter discussion ( https://twitter.com/matbrowndotdev/status/1290612927536467968 ). Glancing at the lib again, one of my biggest...

Trying to dispatch an Observable ```javascript export const fetchMetaDataLogic: Logic = createLogic({ type: fetchMetaData, process: ({ getState, action }, dispatch, done) => { const code: string = action.payload; const ob$...

It's possible to set dispatchReturn to true explicitly but also accidentally enable dispatchMultiple implicitly by including the full signature of the process hook: ``` processOptions: { dispatchReturn: true, successType: auth.actions.logout_success,...

When compiling with tsc and `--strict` switched on, I found error in `createLogic` callback. Specifically, tsc indicates `reject` parameter in `transform` function can be undefined. I checked the type definition:...

discussion

I went over the API documentation and the setup of failType seems straight forward yet I can't make it work with async logic... ``` const myLogic= createLogic({ type: "FETCH", processOptions:...

discussion

current type definitions version ``` export type Action< Type extends string = string, Payload extends Object = undefined, Meta extends Object = undefined > = | ErroneousAction | (StandardAction &...

It appears that hooks don't fully benefit from promise/observable returns. The suggestion is to use promise and observable returns and make callback API optional where possible. The library already relies...

enhancement

I want to do optimistic updates on a toggle switch while also debouncing the api call. Unfortunately, the logic waits for the debounce timeout before running any code, so I...

Hello. I am getting trouble after I updated redux-logic to latest version. I read all document and it said single-dispatch option is gone. So I added done() to all my...