Itspatricku @itspatricku.bsky.social · 05/01/2025I always split router/page logic from my actual features. This made migrating from remix (spa) to @tanstack.com router a breeze. A lot less non null assertions 🙈🙈 1221
Itspatricku @itspatricku.bsky.social · 05/01/2025You mean something like this, hey? Agreed, it’s a solid solution and probably what I will use. Tbf, what I m looking for is achievable with just tanstack router loader. It would just feel ✨ delightful ✨declaring the query once and using its results across loader and component. 150
Itspatricku @itspatricku.bsky.social · 05/01/2025@tkdodo.eu @tannerlinsley.com hear me out… one thing I don’t “love” is that I need to call postQueryOptions(postId) twice. It’s fine - It makes sense, but I wished I could just “reuse” the same call. Maybe this is crazy, but do you think an API like this be possible? In query+router? 1150