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: detect URL change [TOL-1059] #68

Merged
merged 5 commits into from
Apr 17, 2023
Merged

Conversation

YvesRijckaert
Copy link
Contributor

Detecting URL changes with a polling approach (interval) since hashchange and popstate events were not working with our next js starter template.

@YvesRijckaert YvesRijckaert requested a review from a team April 12, 2023 14:24
@YvesRijckaert YvesRijckaert changed the title feat: detect URL change feat: detect URL change [TOL-1059] Apr 12, 2023
src/types.ts Outdated
@@ -33,18 +33,32 @@ type IframeConnectedMessage = {
action: 'IFRAME_CONNECTED';
connected: true;
tags: number;
url: string;
Copy link
Collaborator

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?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯 for these tests

@chrishelgert chrishelgert force-pushed the feat/detect-url-change branch from 1f4ecc8 to 8a6e9ea Compare April 17, 2023 07:50
@chrishelgert chrishelgert merged commit d339897 into main Apr 17, 2023
@chrishelgert chrishelgert deleted the feat/detect-url-change branch April 17, 2023 07:51
@contentful-automation
Copy link
Contributor

🎉 This PR is included in version 1.10.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

3 participants