Replies: 1 comment 1 reply
-
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.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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