We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Redux Action:
export const getUsers = () => { return { type: GET_USERS_REQUEST, }; };
API Request:
export const getUsers = () => { return API(GET_USERS, { method: "GET", }); };
Saga:
function* callGetUsers() { try { const result = yield* getUsers(); const { status, data } = result; if (status === 200) { yield* put({ type: GET_USERS_SUCCESS, payload: data }); } } catch (err) { yield* put({ type: GET_USERS_FAILED, payload: err.response.data, }); } } export function* watchGetUsers() { yield* takeLatest(GET_USERS_REQUEST, callGetUsers); }
yield* fork(watchGetUsers);
After upgrading to typed-redux-saga its not making API call. Am I missing anything here?
The text was updated successfully, but these errors were encountered:
This library, at run-time, is just a passthrough layer. Hence the babel plugin to remove it during build.
Are you sure what you're doing works with redux-saga ?
redux-saga
Sorry, something went wrong.
It seems you are missing a call at getUsers
call
getUsers
const result = yield* call(getUsers);
No branches or pull requests
Redux Action:
API Request:
Saga:
Saga:
yield* fork(watchGetUsers);
After upgrading to typed-redux-saga its not making API call. Am I missing anything here?
The text was updated successfully, but these errors were encountered: