How can I detect URL changes when using Partials? #2233
-
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. |
Beta Was this translation helpful? Give feedback.
Answered by
marvinhagemeister
Jan 10, 2024
Replies: 1 comment
-
There is not way to detect URL changes easily at the moment. It's something I'm hoping to add at some point in the future. Let's track this feature request in #2234 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
dn1t
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There is not way to detect URL changes easily at the moment. It's something I'm hoping to add at some point in the future. Let's track this feature request in #2234