You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(importantly, react devtools only connects to the top level of a page, but not iframes :-/ . to work around that, we may need something like this: https://github.com/eddyerburgh/react-dev-tools-iframe-webpack-plugin . I suspect that all the little components in the console are re-rendering at every state update, which adds up to kill perf once a lot of them are present)
I believe that this heap of needless re-renders kill our perf, especially in when evaling a bunch of chunks quickly (e.g. via run all).
leading recommended techniques for fixing this include using reselect to memoize props in mapStateToProps, but there is a ton of other good stuff here:
in React DevTools, if you enable "highlight updates" and take just any notebook action, you'll see that virtually every component in the notebook rerenders (see https://reactjs.org/docs/optimizing-performance.html#avoid-reconciliation and https://blog.logrocket.com/make-react-fast-again-part-3-highlighting-component-updates-6119e45e6833 for the React DevTools feature)
(importantly, react devtools only connects to the top level of a page, but not iframes :-/ . to work around that, we may need something like this: https://github.com/eddyerburgh/react-dev-tools-iframe-webpack-plugin . I suspect that all the little components in the console are re-rendering at every state update, which adds up to kill perf once a lot of them are present)
I believe that this heap of needless re-renders kill our perf, especially in when evaling a bunch of chunks quickly (e.g. via run all).
leading recommended techniques for fixing this include using
reselect
to memoize props in mapStateToProps, but there is a ton of other good stuff here:The text was updated successfully, but these errors were encountered: