T
TanStack2y ago
correct-apricot

Does `ensureQueryData` support passing a signal?

As per title
3 Replies
passive-yellow
passive-yellow2y ago
What do you mean by pass? queryFn in ensureQueryData works like everywhere else so you're provided signal
correct-apricot
correct-apricotOP2y ago
I have a router loader that is passing me a signal to use, how do I pass to the ensureQueryData call
passive-yellow
passive-yellow2y 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?