79378449

Date: 2025-01-22 16:07:14
Score: 3
Natty:
Report link

useTransition causes 2 re-renders.

https://github.com/facebook/react/issues/24269

I was facing the same problem, and in my case the issue was that I wasn't taking the first "urgent" re-render for switching isPending to true into account.

Here's a good article that explains this in details

Reasons:
  • RegEx Blacklisted phrase (2): urgent
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Ali Garajian