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.
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.