Skip to content
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
@smashwilson

Description

@smashwilson

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 and commentDecorationsController_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 and ReviewThreadsAccumulator

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions