-
Notifications
You must be signed in to change notification settings - Fork 19
Avoid Prop-drilling for CollectionRepository #939
Copy link
Copy link
Open
Labels
FY26 Sprint 20FY26 Sprint 20 (2026-03-26 - 2026-04-08)FY26 Sprint 20 (2026-03-26 - 2026-04-08)GREI Re-archGREI re-architecture-relatedGREI re-architecture-relatedSPA.Q1.2026.10Size: 10A percentage of a sprint. 7 hours.A percentage of a sprint. 7 hours.
Description
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
FY26 Sprint 20FY26 Sprint 20 (2026-03-26 - 2026-04-08)FY26 Sprint 20 (2026-03-26 - 2026-04-08)GREI Re-archGREI re-architecture-relatedGREI re-architecture-relatedSPA.Q1.2026.10Size: 10A percentage of a sprint. 7 hours.A percentage of a sprint. 7 hours.