take this example and rewrite the server parts into tanstack server functions without breaking their encapsulation https://overreacted.io/impossible-components/#final-code
then how do you ensure all of their data arrives in a single roundtrip? RSC does guarantee it by executing all server parts together
then how do you ensure all of their data arrives in a single roundtrip? RSC does guarantee it by executing all server parts together
Comments
Maybe you could enforce this with tests + useSuspenseQuery + a suspense boundary that throws an error or something.
with relatively small codebase you can indeed do manual stuff to keep it under control. that’s not the same thing as it “just working”