-
-
Notifications
You must be signed in to change notification settings - Fork 201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Recursive Data Fetching #4
Comments
You basically just need to figure out which components you're planning to render, go fetch all their props, and then provide them to the components, right? I already did this back in earlier versions of RR. Would be happy to take a stab at it again here :D |
Yeah the would be awesome. |
On this note, have a gut feeling that the solution could be very useful if we wanted do a static export like gatsby (but obviously without the graphql complexity) |
Rendering once to figure out what data needs to be fetched is something I did before. Not clean but it works. Only if React render could return a promise... 😬 |
I've used this in the past to accomplish data fetching for any component in a tree on the server: https://github.com/ctrlplusb/react-tree-walker Worked out really well. |
Yeah that could work. @mjackson is |
@jaredpalmer I actually just implemented this in a project I'm working on, I've published it as an npm package, might be of help! |
We would need to walk the tree 🚶♀️
The text was updated successfully, but these errors were encountered: