Replies: 1 comment 4 replies
-
You can use the const navigation = useNavigation();
const fetchers = useFetchers();
useEffect(() => {
const fetchersIdle = fetchers.every((f) => f.state === 'idle');
if (navigation.state === 'idle' && fetchersIdle) {
NProgress.done();
} else {
NProgress.start();
}
}, [navigation.state, fetchers]); |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I would like to use nprogress in v6. How can I implement it? Are there any beforeEach and afterEach methods similar to vue router? Thank you very much
Beta Was this translation helpful? Give feedback.
All reactions