1 Reply
My immediate thought would be option B. You remove the need for an extra
<DataWrapper />
component, which simplifies your code and the cognitive load on developers.
I'm fairly sure in terms of the UI / loading behaviour there's no difference, since you're suspending that component tree until the promise resolves in either case. However, if there are other parts of <DataForm>
that you may want to render first, that would impact the decision.