mohebifar / react-unforget

DEPRECATED | ⚠️ Use React Compiler instead ⚠️ | A compiler for automatic optimization of React apps
https://react-unforget.vercel.app/
MIT License
391 stars 4 forks source link

Prevent memoization of new Date and Math.random() #31

Open fatimasajadi opened 4 months ago

fatimasajadi commented 4 months ago

Not sure about a possible fix to this, but it appears to be memoizing impure function calls as well like Date.now(), new Date(), and Math.random()

https://github.com/mohebifar/react-unforget/assets/6689267/1bf52333-9f05-4a49-b817-a5ea63022556