Skip to content

Propagate pushState/replaceState inside worker#172

Merged
adamdbradley merged 9 commits intoQwikDev:mainfrom
slawekkolodziej:push-state
May 24, 2022
Merged

Propagate pushState/replaceState inside worker#172
adamdbradley merged 9 commits intoQwikDev:mainfrom
slawekkolodziej:push-state

Conversation

@slawekkolodziej
Copy link
Copy Markdown
Contributor

Hey I was investigating issue with GTM inside next.js app. I noticed that tag manager assigns custom pushState/replaceState to forward history changes on SPA. However, Partytown never forwards those calls to worker.

An issue describing this problem was already reported here: #165

This MR fixes the problem.

@vercel
Copy link
Copy Markdown

vercel Bot commented May 6, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
partytown ✅ Ready (Inspect) Visit Preview May 6, 2022 at 9:41PM (UTC)

Copy link
Copy Markdown
Contributor

@quickshiftin quickshiftin left a comment

Choose a reason for hiding this comment

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

This looks like a great addition to the library along with some cleanup.

@miikebar
Copy link
Copy Markdown

@steve8708 @adamdbradley any progress on this? This is blocking us from using Partytown

@rbordeanu
Copy link
Copy Markdown

I'm curious about this as well.

@adamdbradley adamdbradley merged commit 5b90408 into QwikDev:main May 24, 2022
@naveedahmed1
Copy link
Copy Markdown

@adamdbradley this doesn't seem to work for GA 4 Enhanced Measurement Browser History Events (pop/push state)

@slawekkolodziej slawekkolodziej deleted the push-state branch May 26, 2022 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants