python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Jest test doesnt wait for a saga to end
Jest for testing,
Redux-Saga
Let's say I have this saga:
export function* callCreateTemplate({payload}){
try{
...
yield delay(1500)
...
}
Don't judge me for having this delay(1500) is related t...
Mauricio Etchevest
Votes: 0
Answers: 1
React. Redux persist sends two identical requests
i am using redux-persist and refux tool kit. I have a dependency, if the slice (RTK) changes, then there is a request to the server. Without a persister, there is 1 request, as it should be. But when ...
Dmitry Yushkevich
Votes: 0
Answers: 1
Requiring private library in saga with hermes engine enabled causing max call stack size exceeded (native stack depth)
I'm currently trying to migrate our React Native application to leverage the hermes engine. When running the rootsaga with sagaMiddleware.run(rootSaga) we are getting the error: RangeError: Maximum ca...
Newoda
Votes: 0
Answers: 1
Redux saga race effect in pure javascript
In redux saga we have race effect where we can pass named promises:
const { a, b } = yield race({ // will resolve if one of them resolves
a: call(somePromise),
b: call(somePromise2),
});
if...
underfrankenwood
Votes: 0
Answers: 0