koba04 / swr-devtools

A DevTool for SWR
https://swr-devtools.vercel.app
MIT License
217 stars 3 forks source link

fix: remove the inserted script after loading #79

Closed koba04 closed 1 year ago

koba04 commented 1 year ago

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[bot] commented 1 year ago

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)