Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Continously calling setInterval from library #237

Open
suraj-kawale-au2 opened this issue Mar 25, 2021 · 1 comment
Open

Continously calling setInterval from library #237

suraj-kawale-au2 opened this issue Mar 25, 2021 · 1 comment
Labels

Comments

@suraj-kawale-au2
Copy link

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.

@FDiskas
Copy link

FDiskas commented May 13, 2021

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants