How to catch perf regressions due to compiler bailouts? #35
Unanswered
aeharding
asked this question in
General Questions
Replies: 1 comment
-
Probably not what you ask for but there's a test tool to assert React re-renders: https://github.com/callstack/reassure |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
I am starting to remove
useCallback
anduseMemo
from compiled components in my codebase for code readability.However, I want to make sure that the component is always compiled and the compiler won't bailout in the future (which could cause performance regressions).
Is there a way to enforce compilation (and throw error if not compileable)? We have
"use no memo";
- perhaps we need"use memo";
which won't do anything except tell the linter to enable all error severity warnings for the component?Beta Was this translation helpful? Give feedback.
All reactions