Are referential-type values as default props in object destructuring optimized by React Compiler? #73
Replies: 2 comments
-
|
Just tested it in Compiler Playground. The compiler leaves it as is. Seems like a potential opportunity for the compiler? |
Beta Was this translation helpful? Give feedback.
-
|
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. |
Beta Was this translation helpful? Give feedback.
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?
Beta Was this translation helpful? Give feedback.
All reactions