> the memory leak is added back in by the compiler’s memoization magic. For developers who will be new to React after the compiler becomes the default, this might be very hard to realize, debug and fix.

https://schiener.io/2024-07-07/react-closures-compiler

#webDev #react #javascript #web #development #reactJS #reactCompiler

Sneaky React Memory Leaks: How the React compiler won’t save you

How the React compiler handles memory leaks caused by closures and why it won’t save us from them.

Kevin Schiener
@schizanon Damned either way, React way