-
Notifications
You must be signed in to change notification settings - Fork 16
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: detect URL change [TOL-1059] #68
Conversation
src/types.ts
Outdated
@@ -33,18 +33,32 @@ type IframeConnectedMessage = { | |||
action: 'IFRAME_CONNECTED'; | |||
connected: true; | |||
tags: number; | |||
url: string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't feel super strongly but as a suggestion, maybe this could be root
or anchorUrl
for clarity?
src/tests/pollUrlChanges.spec.ts
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯 for these tests
1f4ecc8
to
8a6e9ea
Compare
🎉 This PR is included in version 1.10.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Detecting URL changes with a polling approach (interval) since
hashchange
andpopstate
events were not working with our next js starter template.