Skip to content

Commit

Permalink
feat(context): add direct context-access to repository and branch
Browse files Browse the repository at this point in the history
  • Loading branch information
plusgut committed Oct 6, 2021
1 parent a561c60 commit c8ff6e2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@plusnew/state",
"version": "0.15.2",
"version": "0.16.0",
"description": "library for doing complex statemanagement in plusnew",
"main": "src/index.tsx",
"module": "src/index.tsx",
Expand Down
2 changes: 2 additions & 0 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,7 @@ export default function factory<T extends entitiesContainerTemplate>() {
Item: itemFactory(repositoryContext, branchContext),
Reduce: reduceFactory(repositoryContext, branchContext),
Merge: mergeFactory(repositoryContext, branchContext),
RepositoryContextConsumer: repositoryContext.Consumer,
BranchContextConsumer: branchContext.Consumer,
};
}

0 comments on commit c8ff6e2

Please sign in to comment.