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

Clear timer on component unmount #1

Merged
merged 1 commit into from
Dec 4, 2021
Merged

Clear timer on component unmount #1

merged 1 commit into from
Dec 4, 2021

Conversation

davidmz
Copy link
Contributor

@davidmz davidmz commented Dec 4, 2021

Without this, the forceRender may execute on unmounted component. It can happen when the component presence is depends on the store and the component itself is also dependent on store.

The @nanostores/react has the same problem.

Without this, the forceRender may execute on unmounted component. It can happen when the component presence is depends on the store and the component itself is also dependent on store.

The @nanostores/react has the same problem.
@ai
Copy link
Member

ai commented Dec 4, 2021

Cool idea

@ai ai merged commit d166639 into nanostores:main Dec 4, 2021
@ai
Copy link
Member

ai commented Dec 4, 2021

Thanks. Released in 0.1.3.

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

Successfully merging this pull request may close these issues.

2 participants