React Query can return RSC or JSX in the future without Tanstack Start?
I think my team might not move to Tanstack router and keep stick on React-router. But I really like Tanner’s view that RSC is just api with returning jsx. So wanna ask that React-query has any long term plan that will integrate to return RSC if possible without using Tanstack Router or Tanstack Start? If that so, will love to use it
3 Replies
fair-rose•9mo ago
React query doesn't return anything. You give it a promise and it caches that. Doesn't matter what the promise resolves to.
fascinating-indigoOP•9mo ago
Oh got it. Then it might be out of scope of react query. Thanks for clarification
exotic-emerald•9mo ago
To expand on tk point and the stuff I've heard from Tanner, I think once you have server functions in Start that return rsc payloads and the client side of start can handle them, Router and Query can just work as it caching the RSC payloads. It's drop in from Querys perspective.
Although Tanner is deliberately being late to RSC, there's other low hanging fruit for Router and Start