react-easy-state icon indicating copy to clipboard operation
react-easy-state copied to clipboard

Continously calling setInterval from library

Open suraj-kawale-au2 opened this issue 4 years ago • 1 comments

React Easy State version: x.x.x **Platform:**Chrom / node / react/

Describe the bug A clear and concise description of what the bug is. image

image

Some setInterval from the library is continuously getting called which results in a memory leak.

A demo application that showcases the bug.

suraj-kawale-au2 avatar Mar 25 '21 00:03 suraj-kawale-au2

Also noticed some memory leak in server side - using nextjs

"@risingstack/react-easy-state": "^6.3.0",
"next": "^10.2.0",

image

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

image

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)

FDiskas avatar May 13 '21 19:05 FDiskas