How to preload data for a component before rendering it
Is it possible to implement a setup similar to Remix's routing dependent data fetching model, but for rendering React components?
Or is that just using Suspense?
I have a data cascade that I want to eliminate, but not in a single hacky way, but more ergonomically
2 Replies
deep-jadeOP•3y ago
react-query for context
fair-rose•3y ago
You might wanna checkout #router https://tanstack.com/router/v1. You can use it in conjunction with react-query for the caching layer
TanStack Router | React Router, Solid Router, Svelte Router, Vue Ro...
Powerful routing and first-class search-param APIs for JS/TS, React, Solid, Vue and Svelte