swr-devtools icon indicating copy to clipboard operation
swr-devtools copied to clipboard

doesn't work in nextjs13 project with chrome

Open QingjiaTsang opened this issue 1 year ago • 11 comments

using [email protected] and [email protected]

I wrapped the SWRDevTools at the top client component and there's no errors up in chrome console, but it seems nothing happened at the swr panels when I fetch some data.

Is it supported in nextjs app?

QingjiaTsang avatar Oct 08 '23 01:10 QingjiaTsang

Yes, I think SWRDevTools should work with Next v13. In this case, you don't wrap your application with <SWRDevTools />

https://github.com/koba04/swr-devtools#how-to-use

I expect you can see cache data on the SWRDevTools panel only by installing a SWRDevTools extension. Could you reload the page while opening the SWRDevTools panel if you can't see data on the panel?

https://github.com/koba04/swr-devtools#install-the-swrdevtools-extension

koba04 avatar Oct 08 '23 16:10 koba04

We use next.js v13.5.3 and it didn't work as well. When adding <SWRDevTools /> in our layout it worked.

I've seen in the examples you have one using v13.1.6, so maybe it's a more recent change to next.js which broke the SWRDevTools automatic injection.

fgascon avatar Oct 11 '23 00:10 fgascon

Thank you! I'll update the Next version to the latest and test it.

koba04 avatar Oct 11 '23 00:10 koba04

I can reproduce it and will try to fix it. Sometimes, the SWRDevTools display cache data correctly, so I assume a connection problem between an application and the Chrome extension process causes this.

koba04 avatar Oct 11 '23 15:10 koba04

Using Chrome v120 I'm not able to get it working with or without the <SWRDevTools> component wrapping my app. It also doesn't work at https://swr-devtools.vercel.app/.

However, it does work in Firefox.

pvaladez avatar Dec 12 '23 00:12 pvaladez

Any updates?

gary-lo avatar Jan 11 '24 03:01 gary-lo

Hello, any updates on this issue? I'm experimenting the same problem.

BeezBeez avatar Jan 19 '24 05:01 BeezBeez

Since it works as expected in Firefox, perhaps the issue is with the Chrome extension?

st33b avatar Mar 10 '24 16:03 st33b

The Firefox version is still MV2, but the Chrome version is MV3, so I assume the MV3 implementation is incorrect.

koba04 avatar Mar 15 '24 09:03 koba04

is not working either on edge, maybe the same reason not working on chrome

Mandy9943 avatar Jun 20 '24 13:06 Mandy9943

Same issue here.

memo-upstart avatar Jul 03 '24 17:07 memo-upstart