Idea: per-component Load functions #5615
Replies: 2 comments
-
I think this is a "no". It'd require magically injecting additional props into the instantiated child components that the parents aren't passing. Also making this more complicated is that SSR needs to be synchronous. Each component can't be independently responsible for loading its own dependencies, because we need to render the whole page synchronously at once, and we can't wait for individual components to load what they need. |
Beta Was this translation helpful? Give feedback.
-
Ah, OK. Makes sense 👍 Is there an "intended" way of passing down props from Load functions on pages to components rather than just passing them all the way down? |
Beta Was this translation helpful? Give feedback.
-
Describe the problem
Describe the proposed solution
This proposal is about adding Load functions to components in addition to pages.
This would work because:
import
directivesAlternatives considered
Importance
nice to have
Additional Information
No response
Beta Was this translation helpful? Give feedback.
All reactions