koba04 / swr-devtools

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

After a short period of time, Cache and History tabs stop updating #110

Open jketcham opened 1 year ago

jketcham commented 1 year ago

I'm not sure what the exact issue is, but I just started using SWR and the devtools, and I've noticed that I have to close and re-open my devtools pane after maybe ~30 minutes/1 hour because the Cache and History tabs stop receiving updates.

I'm on version 2.0.0 of swr and 1.2.0 of the devtools installed on Chrome 108.0.5359.124.

Is there any known issue with this? Let me know if there's more info I can provide to help. When I open the devtools for the extension's service worker I don't see any errors, and I still see the pane connection events being logged even when the SWR devtools pane stops updating.

koba04 commented 1 year ago

Thank you! I've also seen the behavior and want to fix this, but it's hard to reproduce in development. When I worked on the problem, it didn't happen if we were opening the console panel for the background script. I guess it's a connection problem between content and background scripts. But I have to find out the cause of the problem to fix this.

jketcham commented 1 year ago

Ok good to know @koba04, as I have time I'll try to dig into this myself too.