Skip to content

Commit 7d9a081

Browse files
authored
avoid resetting the repo (#187)
1 parent 4a315a2 commit 7d9a081

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/hypergraph/src/store.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,9 @@ export const store: Store<StoreContext, StoreEvent, GenericEventObject> = create
161161
invitations: event.invitations,
162162
};
163163
},
164-
reset: () => {
165-
return initialStoreContext;
164+
reset: (context) => {
165+
// once the repo is initialized, there is no need to reset it
166+
return { ...initialStoreContext, repo: context.repo };
166167
},
167168
addUpdateInFlight: (context, event: { updateId: string }) => {
168169
return {

0 commit comments

Comments
 (0)