Skip to content

Commit 36cccf1

Browse files
committed
Move getters in fromStore.ts
1 parent 579c0fa commit 36cccf1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/xstate-store/src/fromStore.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export function fromStore<
7777
const newSnapshot = {
7878
...snapshot,
7979
context: newContext,
80-
...computeGetters(newContext, getters)
80+
getters: computeGetters(newContext, getters)
8181
} as StoreSnapshot<TContext, TGetters>;
8282

8383
for (const effect of effects) {
@@ -101,7 +101,7 @@ export function fromStore<
101101
context,
102102
output: undefined,
103103
error: undefined,
104-
...computeGetters(context, getters)
104+
getters: computeGetters(context, getters)
105105
} satisfies StoreSnapshot<TContext, TGetters>;
106106
},
107107
getPersistedSnapshot: (s) => s,

0 commit comments

Comments
 (0)