79106529

Date: 2024-10-20 07:09:40
Score: 2.5
Natty:
Report link

After some debugging, I found that

When setState is called, React will schedule a micro task to rerender.

The assumption is wrong.

For more details, check https://github.com/facebook/react/issues/31182#issuecomment-2421205201

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: D-Y