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

fix: remove the inserted script after loading #79

Merged
merged 1 commit into from
Jul 13, 2022

Conversation

koba04
Copy link
Owner

@koba04 koba04 commented Jul 13, 2022

This is alternative of #76. This avoids hydration errors by removing inserted script after loading. We only want to defined window.__SWR_DEVTOOLS_USE__, so we can remove it after loading.

@vercel
Copy link

vercel bot commented Jul 13, 2022

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

Name Status Preview Updated
swr-devtools ✅ Ready (Inspect) Visit Preview Jul 13, 2022 at 2:09AM (UTC)

@koba04 koba04 merged commit f81a06d into main Jul 13, 2022
@koba04 koba04 deleted the remove-injected-script-after-loading branch July 13, 2022 02:48
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.

1 participant