|
|
|
|
|
by exogen
3159 days ago
|
|
Yes, I'm saying that getting those props to those children in the first place is annoying to do and I'd still have to build a bunch of `context` helpers on top of Relay and Apollo to make doing that nice. This is the API I want: <Artist mbid="abc-123">
<Artist.Name />
<Artist.Disambiguation />
<SomeOtherComponentThatHasArtistFieldDescendants />
</Artist>
This is the API you're saying I would have to use with vanilla Relay and Apollo: <Artist mbid="abc-123">
<Artist.Name mbid="abc-123" />
<Artist.Disambiguation mbid="abc-123" />
<SomeOtherComponentThatHasArtistFieldDescendants mbid="abc-123" />
</Artist>
|
|
Considering neither are possible with vanilla Relay and Apollo and I need to build these helper HOCs either way, I don't really see why what you're proposing is better. I had already considered them both and deliberately did not do it that way.