Skip to content

Avoid Prop-drilling for CollectionRepository #939

@ChengShi-1

Description

@ChengShi-1

In order to avoid prop-drilling, we could use context to share repository instances.

We could create a custom hook,useRepositories( ) for passing use cases, wrap everything inside its provider component. Storybook and Test files should also be modified to match the same pattern of use context.

There are some sample codes from German of making these changes in this branch -> develop...avoid-prop-drilling

Metadata

Metadata

Assignees

No one assigned

    Labels

    FY26 Sprint 20FY26 Sprint 20 (2026-03-26 - 2026-04-08)GREI Re-archGREI re-architecture-relatedSPA.Q1.2026.10Size: 10A percentage of a sprint. 7 hours.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions