Skip to content

Avoid props drilling multiple repositories#1000

Draft
ChengShi-1 wants to merge 16 commits into
developfrom
AvoidPropsDrillingFileRepo
Draft

Avoid props drilling multiple repositories#1000
ChengShi-1 wants to merge 16 commits into
developfrom
AvoidPropsDrillingFileRepo

Conversation

@ChengShi-1
Copy link
Copy Markdown
Contributor

What this PR does / why we need it:

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.

Which issue(s) this PR closes:

Special notes for your reviewer:

Suggestions on how to test this:

Does this PR introduce a user interface change? If mockups are available, please link/include them here:

Is there a release notes or changelog update needed for this change?:

Additional documentation:

@coveralls
Copy link
Copy Markdown

coveralls commented Jun 4, 2026

Coverage Status

coverage: 98.063% (+0.7%) from 97.389% — AvoidPropsDrillingFileRepo into develop

@ChengShi-1 ChengShi-1 self-assigned this Jun 4, 2026
@ChengShi-1 ChengShi-1 added Size: 10 A percentage of a sprint. 7 hours. GREI Re-arch GREI re-architecture-related FY26 Sprint 25 FY26 Sprint 25 (2026-06-03 - 2026-06-17) labels Jun 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

FY26 Sprint 25 FY26 Sprint 25 (2026-06-03 - 2026-06-17) GREI Re-arch GREI re-architecture-related Size: 10 A percentage of a sprint. 7 hours.

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

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

2 participants