mohebifar/react-unforget

Prevent memoization of new Date and Math.random()

Open

#31 opened on Mar 13, 2024

 (0 comments) (0 reactions) (0 assignees)TypeScript (4 forks)github user discovery
enhancementgood first issue

Repository metrics

Stars
 (386 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

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

Contributor guide