Skip to content

Commit 510646c

Browse files
fix(overmind): fix issue with wrong state passed to immediate reaction
1 parent a8c8ab4 commit 510646c

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
@@ -910,7 +910,7 @@ export class Overmind<ThisConfig extends IConfiguration>
910910
}
911911

912912
if (options.immediate) {
913-
updateCallback(this.state as any)
913+
updateCallback(stateCallback(this.state as any))
914914
}
915915

916916
return disposer

0 commit comments

Comments
 (0)