T
TanStack13mo ago
flat-fuchsia

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
flat-fuchsia
flat-fuchsiaOP13mo ago
but when i clicked restore loading and then i clicked refetch everythings works fine but it must fecth automaticly not with dev tools
rare-sapphire
rare-sapphire13mo 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?
flat-fuchsia
flat-fuchsiaOP13mo ago
same issue, 3 / 4 working
No description
flat-fuchsia
flat-fuchsiaOP13mo ago
@ksgn
rare-sapphire
rare-sapphire13mo ago
Can you see the Requests going out in the Devtools of the Browser (Network-Tab)?
flat-fuchsia
flat-fuchsiaOP13mo ago
only this one
No description
No description
No description
flat-fuchsia
flat-fuchsiaOP13mo ago
@ksgn
spiritual-aqua
spiritual-aqua13mo 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?