#Nprogress not working when changing routes

1 messages · Page 1 of 1 (latest)

woeful linden
#

Hello all, my nprogress is not working when changing the routes, but it's working fine when I am triggering the progress bar manually with a button I am using nextjs

south prairie
woeful linden
#

Ok lemme try

woeful linden
#

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

south prairie
woeful linden
#

url !== router.asPath is true when changing routes so it should call the function

#

I have copy pasted the same usage with nextjs section code

south prairie
woeful linden
#

Anyway thanks for the help but sometimes it works I don't know what's going on with it 😅