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

Have to enable runInProduction in my dev build #21

Open
cosmith opened this issue Nov 20, 2024 · 4 comments
Open

Have to enable runInProduction in my dev build #21

cosmith opened this issue Nov 20, 2024 · 4 comments
Assignees

Comments

@cosmith
Copy link

cosmith commented Nov 20, 2024

Hello, when using react-scan in the dev/debug version of our vite app, we have to set runInProduction to true for the scan to start. Is this expected?

@andyluak
Copy link

Same happening for me as well.

@aidenybai
Copy link
Owner

@cosmith @andyluak yeah that's not intended. taking a look

@andyluak
Copy link

Also I know this might not necessary be possible, but worth an ask :

I'd like to get the re-renders information and optimisations for one parent component. I think because that parent is in a BaseLayout and that BaseLayout has two providers wrapping it, it displays the re-renders on the entire tree even though I initiate react-scan in that parent component. Is there any workaround for this, because the console gets quite crowded ?

@pivanov
Copy link
Collaborator

pivanov commented Jan 16, 2025

@cosmith @andyluak
For Vite you can check this one @pivanov/vite-plugin-react-scan :)

please let me know how it's work.

@pivanov pivanov self-assigned this Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants