4 ms·
In my cases, for 1) and 2) the parent component would be fetching the user and passing it down to the child components.
by aboutruby 8y ago
In my cases, for 1) and 2) the parent component would be fetching the user and passing it down to the child components.
- exogen 8y agoFor (1), how does the parent know whether those components will actually be rendered? Keep in mind one of the requirements was "only fetch if they're actually rendered." Presumably some other components along the way could be deciding to conditionally render them, right? For (2), the complexity is still there, just in the parent: it needs an entity store and to merge/invalidate when the same entity appears in multiple responses. So still not just a simple case of making some REST API calls.