Skip to content

Avoid prop-drilling for file/user/guestbook and all other repositories #998

Description

@ChengShi-1

In order to avoid prop-drilling, we could use context to share repository instances. (We have already completed for collection repository and dataset repository)

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FY26 Sprint 24FY26 Sprint 24 (2026-05-20 - 2026-06-03)FY26 Sprint 25FY26 Sprint 25 (2026-06-03 - 2026-06-17)FY26 Sprint 26FY26 Sprint 26 (2026-06-17 - 2026-07-01)Original size: 10Size: 10A percentage of a sprint. 7 hours.

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions