In next.js, we can do like this:
function MyComponent() {
const dataPromise = fetchData()
return (
<ShellComponent />
<Suspense fallback={<div>Loading...</div>}>
<ComponentWaitingOnData promise={dataPromise} />
</Suspense>
)
}
This way, ShellCompnent and fallback of suspense boundary is streamed to the client straight away without any wait. And ComponentWaitingData is streamed when its data is available. How can we do the same in Tanstack Start? Thank you