Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: exclude specific routes / disable loader #40

Open
dev-aly3n opened this issue Nov 30, 2024 · 2 comments
Open

feat: exclude specific routes / disable loader #40

dev-aly3n opened this issue Nov 30, 2024 · 2 comments

Comments

@dev-aly3n
Copy link

Description

Hi,
As mentioned in the Next.js documentation, we can also modify the history stack using window.history.pushState or replaceState.

Imagine there is a gallery, and you want to change the page URL when the user swipes to the next artwork. This way, if they refresh the page, they will see that particular artwork again. Additionally, using searchParams is not an option for us in this scenario.

So, what if we could set a ref or state right before programmatically manipulating the history stack, and this prevents the loader from showing up at the top of the page?

Reproduction steps

.

Screenshots

![DESCRIPTION](LINK.png)

Logs

No response

Browsers

Chrome

OS

Mac

@dev-aly3n
Copy link
Author

#17 (comment)

@dev-aly3n
Copy link
Author

<HolyLoader ignorePaths={[/^\/image-gallery\/*]} />

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant