Maximum callstack exceeded when using `prefetchQuery` in NextJS 14
Hey there!
I recently discovered this library and have been trying to swap out my generic OpenAPI client using fetch with
I'm in a NextJS 14 project using the app router and trying to handle SSR for initial load by following the Advanced SSR guide for the NextJS app router.
I have the following code:
Where
When I load this route in my browser, I get the following stack trace:
Can anyone point me in a direction as to what I'm doing wrong?
Thanks!
I recently discovered this library and have been trying to swap out my generic OpenAPI client using fetch with
react-query using axios.I'm in a NextJS 14 project using the app router and trying to handle SSR for initial load by following the Advanced SSR guide for the NextJS app router.
I have the following code:
Where
getLeaderboard is an axios-based function generated by https://orval.dev. I've set up my providers as followed like the guide:When I load this route in my browser, I get the following stack trace:
Can anyone point me in a direction as to what I'm doing wrong?
Thanks!