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

Front-end ReactJS Developer — https://aggelos.dev

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Aggelos Arvanitakis

Aggelos Arvanitakis

Front-end ReactJS Developer — https://aggelos.dev

More from Medium

Let there be light: final outcome, work in progress

Final Draft — The Great Depression and Its Impacts

Airbnb Smart Pricing: Is It Worth It?

Hardware is Hard !!