koba04 / swr-devtools

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

fix: a hydration error in SSR apps #76

Closed koba04 closed 2 years ago

koba04 commented 2 years ago

Currently, SWRDevTools causes a hydration error with SSR apps because it inserts a script element in the application. This PR has changed the way to inspect SWRDevTools middleware in to the application. I've used scripting.executeScript instead of adding a script element.

In order to use the API, I've added some permissions.

Before

Screen Shot 2022-07-12 at 23 54 32

After

Screen Shot 2022-07-12 at 23 53 01
vercel[bot] commented 2 years ago

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

Name Status Preview Updated
swr-devtools ✅ Ready (Inspect) Visit Preview Jul 12, 2022 at 3:04PM (UTC)
koba04 commented 2 years ago

This didn't fix the issue, so I'll investigate it again.