Skip to content

Does updating state always update DOM? #1061

Answered by jorgebucaran
andywilsonuk asked this question in Q&A
Discussion options

You must be logged in to vote

Updating the state will always update the DOM, but setting a property to the same value will not because that does not constitute a state update. We skip DOM updates here.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@andywilsonuk
Comment options

@jorgebucaran
Comment options

Answer selected by andywilsonuk
# for free to join this conversation on GitHub. Already have an account? # to comment
Category
Q&A
Labels
None yet
2 participants