79391462

Date: 2025-01-27 16:26:05
Score: 1
Natty:
Report link

isFetching did it for me. I had to change status === "pending" to isFetching and then render the relevant component. Example below:

{(isFetching) ? <SkeletonComponent /> : <> Some component</> }

Then use query invalidation to manually trigger the refresh based on some mutations.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): did it for me
  • Low reputation (0.5):
Posted by: Eunit