T
TanStack2y ago
extended-salmon

Does `ensureQueryData` support passing a signal?

As per title
3 Replies
sensitive-blue
sensitive-blue2y ago
What do you mean by pass? queryFn in ensureQueryData works like everywhere else so you're provided signal
extended-salmon
extended-salmonOP2y ago
I have a router loader that is passing me a signal to use, how do I pass to the ensureQueryData call
sensitive-blue
sensitive-blue2y ago
Have you tried using yours? Seems like if you just give it to axios or whatever you use to fetch inside the queryFn, then RQ will hear that rejected promise

Did you find this page helpful?