Skip to content
New issue

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

Help to use nextFrame with Redux Saga #7

Open
jdvvaghelaoffice opened this issue Feb 20, 2019 · 1 comment
Open

Help to use nextFrame with Redux Saga #7

jdvvaghelaoffice opened this issue Feb 20, 2019 · 1 comment

Comments

@jdvvaghelaoffice
Copy link

Hie,
I'm using axios in Redux saga.
While calling multiple APIs, User Interaction freezes until got response from all called APIs.
Can nextFrame() help me to resolve freezing issue?
If yes then where can I use this method?
In Saga file or anywhere else ?

@Brqqq
Copy link

Brqqq commented Aug 2, 2019

It could help you. You can use it like any other async function in redux sagas.

import nextFrame from "next-frame";

function* someSaga() {
    yield call(nextFrame);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants