Skip to content

Fix "setState during render" warning#22

Merged
AlexandrHoroshih merged 3 commits intomainfrom
fix-wrong-set-state-warning
Sep 16, 2023
Merged

Fix "setState during render" warning#22
AlexandrHoroshih merged 3 commits intomainfrom
fix-wrong-set-state-warning

Conversation

@AlexandrHoroshih
Copy link
Copy Markdown
Member

Delay watchers re-run by one microtask, so React won't be angry at us for calling setState during render

@bolt-new-by-stackblitz
Copy link
Copy Markdown

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@AlexandrHoroshih AlexandrHoroshih merged commit 77db34c into main Sep 16, 2023
@AlexandrHoroshih AlexandrHoroshih deleted the fix-wrong-set-state-warning branch September 16, 2023 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant