Skip to content
This repository has been archived by the owner on Feb 18, 2022. It is now read-only.

Check if component is mounted before updating state #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

RuudBurger
Copy link

This makes sure that if the setTimeout triggers for the finishAnimation, before setting a new state, it checks if the component is still mounted.

Don't know how to build to lib though ;) But tested on local environment and works like expected.

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

Successfully merging this pull request may close these issues.

1 participant