79339103

Date: 2025-01-08 12:20:27
Score: 1
Natty:
Report link

I agree with rizzling about that::

"useSuspenseQuery()" block rendering until the data fetching, but useQuery() handle rendering and loading data at the same time.

you know that rendering time is limited to 60 sec:: so in first hook(useSuspenseQuery) the rendering won't start until data fetched (whatever time it takes), but in second hook(useQuery)the rendering will start immediately in parallel with fetching data.

let say that fetching data takes 90sec , if u use useSuspenseQuery :: you will not face any issue because the rendering will start after 90 sec if u user useQuery :: you will face the timeout error because you reach 60th sec and no data has been fetched yet ...

you need to revise your api performance and need to use(logging,monitoring tools) to see bottlenecks

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Amany Mohamed