#Nprogress not working when changing routes
1 messages · Page 1 of 1 (latest)
Can you check if the next events are firing when you change routes? (do some console log). Also make sure that you have the latest version of all mantine packages (5.1.6).
Ok lemme try
okay so i updated to the latest version but still no luck
const handleStart = (url: string) => { console.log('start event fired'); return url !== router.asPath && startNavigationProgress(); }; const handleComplete = () => { console.log('reset event fired'); return resetNavigationProgress(); };
both events are logging as i change routes
Maybe this part causes the function not to fire url !== router.asPath
url !== router.asPath is true when changing routes so it should call the function
btw i am following this https://mantine.dev/others/nprogress/
I have copy pasted the same usage with nextjs section code
Well no idea, if you've checked url !== router.asPath then it should work as expected
Anyway thanks for the help but sometimes it works I don't know what's going on with it 😅