Skip to content

Commit 521743f

Browse files
fix(overmind): fix bug related to fork value
1 parent 3951332 commit 521743f

File tree

1 file changed

+1
-1
lines changed
  • packages/node_modules/overmind/src

1 file changed

+1
-1
lines changed

packages/node_modules/overmind/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -759,7 +759,7 @@ export function fork<
759759
if (err) next(err)
760760
else {
761761
stopDebugOperator(newContext)
762-
next(null, returnedContext)
762+
next(null, { ...returnedContext, value: newContext.value })
763763
}
764764
})
765765
paths[path](null, newContext, nextWithPaths)

0 commit comments

Comments
 (0)