-
-
Notifications
You must be signed in to change notification settings - Fork 689
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
The map still adds the hash after calling map.remove() #4375
Labels
bug
Something isn't working
good first issue
Good for newcomers
PR is more than welcomed
Extra attention is needed
Comments
HarelM
added
bug
Something isn't working
PR is more than welcomed
Extra attention is needed
good first issue
Good for newcomers
labels
Jul 8, 2024
Thanks for taking the time to open this issue! |
smellman
added a commit
to smellman/maplibre-gl-js-1
that referenced
this issue
Jul 18, 2024
8 tasks
smellman
added a commit
to smellman/maplibre-gl-js-1
that referenced
this issue
Jul 18, 2024
smellman
added a commit
to smellman/maplibre-gl-js-1
that referenced
this issue
Jul 18, 2024
smellman
added a commit
to smellman/maplibre-gl-js-1
that referenced
this issue
Jul 18, 2024
smellman
added a commit
to smellman/maplibre-gl-js-1
that referenced
this issue
Jul 18, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
Something isn't working
good first issue
Good for newcomers
PR is more than welcomed
Extra attention is needed
maplibre-gl-js version: 4.5.0
browser: Chrome / any
Steps to Trigger Behavior
hash:true
in Next.js<Link>
which triggers client side navigation (possibly it could happen with other React frameworks)map.remove()
in the cleanup of the useEffect which initializes the mapLink to Demonstration
codesandbox
Expected Behavior
After calling
map.remove()
it does not add the hash anymoreActual Behavior
It adds the hash to the page it navigated to even though the map has been removed.
The text was updated successfully, but these errors were encountered: