react-easy-state
react-easy-state copied to clipboard
Continously calling setInterval from library
React Easy State version: x.x.x **Platform:**Chrom / node / react/
Describe the bug
A clear and concise description of what the bug is.


Some setInterval from the library is continuously getting called which results in a memory leak.
A demo application that showcases the bug.
Also noticed some memory leak in server side - using nextjs
"@risingstack/react-easy-state": "^6.3.0",
"next": "^10.2.0",

and after removing react-easy-state it is much better.

Note - state was used only in one place and one object property and one object method. Page was refreshed every 5s. and snapshots was done every 30s. (before snapshot collect garbage was clicked)