This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Extract fragments from Accumulators and move them closer to the views that render them #2046
Open
Description
Extracted from #1995 (comment):
Something to consider as a best practice -- since Relay is designed to have data co-located with the views that use them, I think we could extract sub-fragments from this graphql fragment and put them on the views that use them. Like
reviewsView_comment
andcommentDecorationsController_comment
.[..]
We'd rather not fetch data we don't need, that's the beauty of GraphQL 😊
This also applies to the other two accumulators:
ReviewSummariesAccumulator
andReviewThreadsAccumulator