sh03
sh035mo ago

`useSuspenseQuery` with Remix causes weird "Failed to parse URL from /api" errors

I'm using tRPC with Remix (no loaders, just a client app) and as soon as I converted my codebase from useQuery to useSuspenseQuery I'm now getting "Failed to parse URL from /api". errors in my console and server. It seems as though the queries are being run on the server for some reason (where /api cannot be parsed because window.location is not available). Any ideas what's going on? Is this intended behaviour?
2 Replies
Omar Khatib
Omar Khatib3w ago
have you managed to make it work?
sh03
sh03OP2w ago
No, I moved to Tanstack Start

Did you find this page helpful?