koba04 / swr-devtools

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

Empty extension #84

Open semoal opened 2 years ago

semoal commented 2 years ago

Hi!

I'm using latest Nextjs, with 2.0.0-beta.6 of SWR and the extension never displays anything.

Do you know how I could debug this?

koba04 commented 2 years ago

@semoal Thanks! That's weird šŸ¤” Which browser extension do you use? Chrome or Firefox?

Can you see the SWR panel and the following message?

image

You can try debugging on your local environment as the following. https://github.com/koba04/swr-devtools/blob/main/CONTRIBUTING.md

kristojorg commented 1 year ago

Hi there,

I am seeing the same issue with the Chrome extension and SWR 2.0.0. I have tried wrapping it in a <SWRDevTools> component at well, but it didn't help. The firefox extension does work though. Thanks!

koba04 commented 1 year ago

@kristojorg What version of SWRDevTools are you using? What about switching tabs in DevTools or reloading a page while opening SWRDevTools panel?

kristojorg commented 1 year ago

I was using latest (installed today) and tried new tabs and also reloading the page and hard reloading the page while the devtools panel was open

AndreyMarchuk commented 1 year ago

Same here, SWR v2.0.3, latest chrome 109.0.5414.119 it says Open SWRDevTools on the page using SWR.

koba04 commented 1 year ago

Could anyone try SWRDevTools on Firefox instead?

jSebestyen590 commented 1 year ago

I have the same problem: Chrome always only shows Open SWRDevTools on the page using SWR. Firefox on the other hand works like a charm :)

tomzacchia commented 1 year ago

Same here Chrome Version 111.0.5563.146 (Official Build) (arm64). I'll install and wrap my app in SWRDevTools since there was mention that it doesn't affect performance even if its included in the production bundle.

koba04 commented 1 year ago

@tomzacchia What version's SWR are you using? If you are using SWR v2.x, you don't have to wrap your application with SWRDevTools.

tomzacchia commented 1 year ago

@koba04 i installed latest. I opened the devtools while on the demo page and the extension fallsback to the default message

Open SWRDevTools on the page using SWR.

kristojorg commented 1 year ago

I noticed that when I switched chrome profiles to my personal (non work) profile, the extension started working properly. There must be some restriction on my work profile stopping it from functioning.

koba04 commented 1 year ago

Thanks! That's helpful šŸ‘

I noticed that when I switched chrome profiles to my personal (non work) profile, the extension started working properly. There must be some restriction on my work profile stopping it from functioning.

mnik01 commented 1 year ago

+1 on this issue

AhmedBaset commented 1 year ago

Is there a solution?

jackirvine97 commented 1 year ago

Any updates on this one?

mnik01 commented 1 year ago

Is project not maintained anymore? Can we priotitaze investigationg of this issue?

koba04 commented 1 year ago

Is project not maintained anymore?

No.

I haven't reproduced this yet, so any reproduction case is helpful.

visortelle commented 12 months ago

Same here. Doesn't work in Chrome, but works in Firefox.

tstanciu commented 12 months ago

Same problem here šŸ™ Chrome Version 119.0.6045.160 (Official Build) (64-bit)

yarinsa commented 11 months ago

Any resolution?

AhmedBaset commented 11 months ago

I haven't reproduced this yet, so any reproduction case is helpful.

Hey @koba04 What do you expect us to provide as reproduction.

We just open the devtools normally then it's blank.

I can share my screen with you using AnyDisk or similar app if that's helpful

koba04 commented 11 months ago

A CodeSandbox project to reproduce this is helpful.

AhmedBaset commented 11 months ago

A CodeSandbox project to reproduce this is helpful.

The issue is not related to swr itself, but rather to the devtools

I believe CSB won't reproduce anyway.

koba04 commented 11 months ago

Does this happen on https://swr-devtools.vercel.app/ ?

AhmedBaset commented 11 months ago

Does this happen on https://swr-devtools.vercel.app/ ?

No

image

But

image
AhmedBaset commented 11 months ago

https://github.com/koba04/swr-devtools/blob/b22be75efa180a3155c3d08f470bcd5f616c3f70/packages/swr-devtools-panel/src/components/SWRDevToolPanel.tsx#L131-L135

koba04 commented 11 months ago

Iā€™m not sure the difference between the apps, so I need an app to reproduce it.