Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to disable SWR-devtools on Production #111

Open
theodorosploumis opened this issue Dec 20, 2022 · 3 comments
Open

How to disable SWR-devtools on Production #111

theodorosploumis opened this issue Dec 20, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@theodorosploumis
Copy link

It seems that SWR-devtools (with swr 2.x version) is also working for Production builds.
Is there any option/idea for how to disable it for Production?

Thanks.

@koba04 koba04 added bug Something isn't working help wanted Extra attention is needed and removed bug Something isn't working help wanted Extra attention is needed labels Dec 21, 2022
@koba04
Copy link
Owner

koba04 commented Dec 21, 2022

Currently, there is no way to disable it.
The latest version of SWRDevTools only sends events while opening the DevTools panel, so it doesn't affect the performance of your application.
But I'll consider providing it. Thank you!

@koba04 koba04 added the enhancement New feature or request label Dec 21, 2022
@shuding
Copy link
Collaborator

shuding commented Dec 21, 2022

Like React DevTools, specific features are available for prod builds and it won't affect your visitors at all.

@CarlosAmaral
Copy link

Please provide this. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants