The issue I'm facing is that NProgress starts appearing at the top before e.preventDefault() gets executed due to <Link> component. To resolve this, I had to install nprogress and code>@types/nprogress</code additionally, which I find less than ideal.
Is it possible that nextjs-progressbar, which already includes nprogress as a dependency, supports nprogress.start() and nprogress.done() functionalities?
I'm curious if it could handle this without the need for additional installations, similar to how it's done locally.
I implemented an
onClick
event function that allows the<Link>
component to display a confirmation modal whenever the page is moved as follows.The issue I'm facing is that
NProgress
starts appearing at the top beforee.preventDefault()
gets executed due to<Link>
component. To resolve this, I had to installnprogress
and code>@types/nprogress</code additionally, which I find less than ideal.Is it possible that
nextjs-progressbar
, which already includesnprogress
as a dependency, supportsnprogress.start()
andnprogress.done()
functionalities?I'm curious if it could handle this without the need for additional installations, similar to how it's done locally.