Running Next.js navigation through react-query
If you think about it, every client-side navigation in next.js page router awaits a GET request to complete. What if we could run those client-side fetch requests through a client-side fetch library like react-query
? I've created a next-query-glue
library that allows you to do it. That brings a lot of control over route data requests and greatly improves the user experience.