T
TanStack10mo ago
conscious-sapphire

Stuck in fetching/loading state

Why is the status still fetching? Why is the status still "fetching" and it doesn't want to fetch data?
No description
No description
No description
8 Replies
conscious-sapphire
conscious-sapphireOP10mo ago
but when i clicked restore loading and then i clicked refetch everythings works fine but it must fecth automaticly not with dev tools
like-gold
like-gold10mo ago
Maybe a timing issue? What does the withAuthorization method do? Can you try commenting it out amd see if the request is going out?
conscious-sapphire
conscious-sapphireOP10mo ago
same issue, 3 / 4 working
No description
conscious-sapphire
conscious-sapphireOP10mo ago
@ksgn
like-gold
like-gold10mo ago
Can you see the Requests going out in the Devtools of the Browser (Network-Tab)?
conscious-sapphire
conscious-sapphireOP10mo ago
only this one
No description
No description
No description
conscious-sapphire
conscious-sapphireOP10mo ago
@ksgn
xenogeneic-maroon
xenogeneic-maroon10mo ago
Why do you need the staleTime and gcTime params. Can you share code in stackblitz? I need to see what the withAuthorization and itemModel.distinct methods do. itemModel sounds like a direct ORM call which doens't normally work in client side code.

Did you find this page helpful?