--

I wouldn't say so. You can easily compose your own `useQuery` and base it on react-query's one.

Thus, you can expose an *identical* api as the original react-query and create your own custom hook consisting of react-query's `useQuery` + a response handler that can do the redirect mentioned above.

Just follow general hook composability patterns and you'll get your result

--

--