Skip to content
This repository was archived by the owner on Jan 7, 2021. It is now read-only.

safe updating of state#4

Open
olaven wants to merge 2 commits into
enonic-archive:masterfrom
olaven:master
Open

safe updating of state#4
olaven wants to merge 2 commits into
enonic-archive:masterfrom
olaven:master

Conversation

@olaven

@olaven olaven commented Jan 29, 2019

Copy link
Copy Markdown
Contributor

Using this.state directly in setState-method is unsafe, as it is the changing of state happens asyncronously.

I was reminded of this fact today, and realized that I might have made that mistake this summer.

Luckily, I could only find this one instance in the whole project 😄

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