Are referential-type values as default props in object destructuring optimized by React Compiler? #73
Unanswered
bk-tho
asked this question in
General Questions
Replies: 2 comments
|
Just tested it in Compiler Playground. The compiler leaves it as is. Seems like a potential opportunity for the compiler? |
0 replies
|
Hi there! Taking a look at your issue regarding When working with the React Compiler (React Forget), this type of behavior usually stems from how the compiler analyzes hook dependencies and component boundaries. Make sure that:
Hope this helps clarify the expected boundaries! Let me know if you have a minimal repro I can test against. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
@eslint-react/eslint-plugin includes the rule no-unstable-default-props:
Is this still useful with React Compiler or will it optimize for these cases?
All reactions