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 do I disable ReactPerf? #3715
Comments
If you set your |
You probably want to make sure the environment variable |
Yea, that's the thing, I'm not in production. So
Thanks for the tip; I'll check this out. Is |
tip: If you use Webpack, you can use imports-loader to inject var to specific module. |
Setting |
If you're intent on using React in development mode, my recommendation would be to fork the version of React you're using, modify the I'm going to close out this issue because it doesn't look like there's anything concrete for React itself to do differently here, but feel free to continue discussing. |
@tjwebb Depending on the build of React you're using, the |
Also – it's very unlikely that ReactPerf is causing you perf problems if it's disabled. When measurement is disabled, it just calls the wrapped function directly so there should be barely any overhead. If you're seeing it as a hot spot, it may be an artifact of your profiling tools. |
I'm working on integrating react server-side rendering with a framework I maintain (sails.js) and
ReactPerf
is ironically causing serious slowdowns in my project to the point that it's skewing my perception of certain things, and making development generally more annoying. I can report my findings (via Chrome debugger) on that separately if anyone's interested. For now, I'd like to disableReactPerf
.The docs state
I am not using react-addons at all, I'm just using the React 0.13 npm module. however,
at node_modules/react/lib/React.js:29:
at node_modules/react/lib/React.js:50:
I see no option to disable. Thoughts?
The text was updated successfully, but these errors were encountered: