SSR data loading in a real world (push vs pull) #13004
Unanswered
marianmeres
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Docs are suggesting this "push" data load approach:
Which works fine. But, imagine this simplified template:
where we need some extra details for the
isFeatured
posts... so, something like this comes to mind:Which is doable, but suddenly our rendering and data loading logic has to stay in sync. It would be convenient to decide what data we need only at the render level. Similar to something like this:
But, AFAIK this "pull" approach is not possible at the SSR level...
Am I missing something or completely thinking wrong here? Can it be worked around?
What other approach would you suggest?
Thank you for your great work and thank you in advance for any suggestions.
I think my question is similar to this: #9204
Beta Was this translation helpful? Give feedback.
All reactions