Closed noobCode-69 closed 6 months ago
upgrade to the 2.3.10 and use disableSameURL={false} on the ProgressBar.
awesome thanks
hmmm it's not working
it seems you have only added it for anchor elements but not for router.push
I'm sorry for that, I add a disableSameURL option on router.push()
on the 2.3.11.
You can use it like this :
router.push('/url', undefined, { disableSameURL: false })
hmm i think it's still not working
when i navigate to the same url the progress start but never end
you will have to manually stop the progress bar since it's just a mock and this event window.history.pushState
will not fire on same url navigation
It is normal that this does not stop because you are not changing pages, you can manually use the stopProgress
function to stop it.
To mock you can also use the startProgress
function to launch the progress bar like this :
<button onClick={() => startProgress()}>Start progress</button>
<button onClick={() => stopProgress()}>Stop progress</button>
You can send me your code if you want so that we can find the best solution.
hey @Skyleen77 thanks for this awesome package
I only have one feature requirement .
router.push
router.push
over heresomething like this will be fine