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

Add a way to listen to partial events #2234

Open
marvinhagemeister opened this issue Jan 10, 2024 Discussed in #2233 · 0 comments
Open

Add a way to listen to partial events #2234

marvinhagemeister opened this issue Jan 10, 2024 Discussed in #2233 · 0 comments
Labels
feat New feature or request

Comments

@marvinhagemeister
Copy link
Collaborator

Discussed in #2233

Originally posted by thoratica January 10, 2024
Hi, I'm using Fresh with Partials enabled. I need a way to detect url changes when using Partials, but couldn't find a right one. I tried listening for popstate events, added anchors of each pages and used MutationObserver to observe the DOM changes and check the data-current and data-ancestor, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant