79513826

Date: 2025-03-17 07:16:09
Score: 2
Natty:
Report link

We have decided to use react-query lib instead of useTransition.

I conclude we were wrong using useTransition for api calls, as the react-query lib provides so much more than just a pending state for this use case.

useTransition is useful for UI intensive tasks, or background UI tasks, but not so much for api calls.

Reasons:
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Oren Sayag