mohebifar/react-unforget

Prevent memoization of new Date and Math.random()

Aperta

#31 aperta il 13 mar 2024

 (0 commenti) (0 reazioni) (0 assegnatari)TypeScript (4 fork)github user discovery
enhancementgood first issue

Metriche repository

Star
 (386 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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

Guida contributor