Bug: React-compiler does not handle potentially null objects gracefully when caching function that may not be run due to short-circuit evaluation #31269
Labels
Component: Optimizing Compiler
Status: Unconfirmed
A potential issue that we haven't yet confirmed as a bug
React version: React 18;
react-compiler-runtime: 0.0.0-experimental-605e95c-20241015
babel-plugin-react-compiler: 0.0.0-experimental-605e95c-20241015
Steps To Reproduce
React compiler playground link
The current behavior
Errors when trying to access
null
objectThe expected behavior
Should not access
null
object which would not be accessed without compiler due to short-circuit evaluation.The text was updated successfully, but these errors were encountered: