Skip to content

JonasDoe/FailingReactCompiler

Repository files navigation

Failing React Compiler

This is a minimalistic scenario where the React compiler bails out, so unnecessary useEffect callback invocations happen.

While an optional chaining call (client?.method()) tips the scale, ALONE is not enough to trigger the bug. The bug requires a combination of factors, mostly a try/catch pattern.

To reproduce, run npm run dev and open localhost:3000. Check the console logs in the browser. You will see that for the MinimalFailingCase unnecessary useEffect callback invocations will be logged.

About

This project gives an example where the React Compiler fails to cache function, leading to multiple renders

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors