2,471 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
1
answer
3k
views
TypeError: 0, _reduxSaga.default is not a function (it is undefined), js engine: hermes
I've been working on a mobile app with Expo React-Native for a while. Everything worked fine with Expo 52.0.37 and React-Native 0.76.7. However, since updating to Expo 53.0.9 and React-Native 0.79.2, ...
1
vote
1
answer
48
views
How to preserve specific properties effectively when merging nested state in Redux?
In our reducer, we’re updating a nested array with new data coming from the backend.
However, certain UI-specific properties (like tooltip) that are not part of the backend response need to be ...
0
votes
2
answers
63
views
How can I create takeOne effect creator in Redux Saga?
I want a Redux Saga effect creator that only takes the first dispatched action of a pattern and ignores the rest. How can I create it? For example here Saga docs explains how takeEvery is created.
I ...
0
votes
0
answers
40
views
Why does expectSaga(watchLayoutFlow).take(OPEN_MAP).run(); throw "saga argument must be a Generator function!"?
I am trying to test a Redux-Saga using redux-saga-test-plan, but I keep getting the error:
runSaga(options, saga, ...args): saga argument must be a Generator function!
Here is my saga:
export ...
0
votes
1
answer
71
views
Calling navigator.perrmissions.query from a generator
I am working with Redux Saga to perform actions like setting authorization and permissions once a user has logged in or has resumed a session. However, it appears that calling navigator.permissions....
1
vote
1
answer
126
views
React router dom v6.26.1 changes url but not re-render the component
I'm having an issue with the page refresh after, when clicking on the button url gets changed in the browser but the page doesn't refresh the correct component, no browser error no terminal error, ...
0
votes
1
answer
47
views
How to attach CANCEL callback to the axios request promise so saga can handle it in TypeScript?
I want to attach CANCEL callback to the promise so saga can handle it.
My code:
import { CANCEL } from 'redux-saga';
cancellableCall = <T = any, E = ApiError>(
options: AxiosRequestConfig,
...
1
vote
1
answer
313
views
Redux Saga pending/success/failure pattern - how to handle interruption
I am using redux-saga and @reduxjs/toolkit. I make some webservice requests and save their responses into redux, and I am following a pending/success/failure pattern I've seen mentioned in a few ...
1
vote
1
answer
67
views
Redux-saga catch error and display notification
I'm facing an issue and I'm looking for the best solution to fix it. I want to display a notification on my dashboard in case of an error. To achieve this:
I'm using Redux-Saga to catch the error and ...
1
vote
1
answer
265
views
Toast error notification still on sign up form after returning from another page
When I have signed up failed, then I moved to the another page, the error toast appeared one more time despite the form has been cleared. For example, if i have signed up failed, then i return back to ...
0
votes
0
answers
35
views
Signup Form Handling using Redux-Saga
I'm trying to make the errors appeared on the console, at the moment, when i have successfully registered, the console logs all the information of username, email, password and confirmpassword and ...
0
votes
1
answer
357
views
How to resolve unknown error thrown at useSelector : Unhandled Promise Rejection: TypeError: useSyncExternalStore is not a function?
The full error is :
Unhandled Promise Rejection: TypeError: useSyncExternalStore is not a function. (In 'useSyncExternalStore(subscribe, getSelection, getServerSelection)', 'useSyncExternalStore' is ...
0
votes
1
answer
46
views
How to stop saga after specified amount of action calls?
I have a case that I have to call n sagas:
function* mainSaga() {
yield all(
someArrayOfIds.map((id) => call(pollSaga, id))
)
}
pollSaga:
function* pollSaga(id) {
yield race([
...
1
vote
0
answers
37
views
Define type of response after using call effect in redux-saga
I am using redux-saga to call API in nextjs ver.13 with typescript. This is my watcher
function* getNoteListWorker(): Generator<any, void, any> {
try {
const getNoteListApi = async () =>...
-2
votes
1
answer
86
views
Redux-saga persist with redux-toolkit, A non-serializable value was detected in an action, in the path: register [closed]
I am using redux toolkit and I get this error:
serializableStateInvariantMiddleware.ts:197 A non-serializable value was detected in an action, in the path: `register`. Value: ƒ register(key) {
...