
React Server Components: Part 1 - JSJ 582
JavaScript Jabber
How to Avoid a Recursive Promise
The only option is that the server has to know after I finish fetching this one query in the parent component, I'm going to have to go and execute these next async functions in the client. So ideally you want, you would have wanted to wait on those two pieces of data in parallel. There isn't a JavaScript solution given that there's user code running in between the data fetches. It's just that if you want to avoid those waterfalls, you have to move all the appropriate logic to the server or else, yeah, there's no way around it.
00:00
Transcript
Play full episode
Remember Everything You Learn from Podcasts
Save insights instantly, chat with episodes, and build lasting knowledge - all powered by AI.