Skyleen77 / next-nprogress-bar

NProgress integration on Next.js compatible with /app and /pages folders
https://next-nprogress-bar.vercel.app
315 stars 24 forks source link

Exclude URL or specific Link #18

Closed mattlinskys closed 7 months ago

mattlinskys commented 1 year ago

I have few anchors tag's that are there only for SEO purposes, after a click I just open a modal and use e.preventDefault() to stop moving to another page. But the progress bar is stuck there indefinitely.

Is there a way to exclude an URL or specific Link component from showing progress bar?

carlos-dubon commented 9 months ago

seems like the same issue as https://github.com/Skyleen77/next-nprogress-bar/issues/27

Skyleen77 commented 7 months ago

My bad for the waiting times.

This will be available in the update which arrives in a few hours.

You can deactivate nprogress of a link by passing it the data-disable-nprogress={true} attribute.