Skip to content

Commit 9afbe32

Browse files
fix(overmind): make reaction an instance propertty
1 parent ec9f60f commit 9afbe32

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

packages/node_modules/overmind/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -826,11 +826,11 @@ export class Overmind<ThisConfig extends IConfiguration>
826826
getMutationTree(): IMutationTree<any> {
827827
return this.proxyStateTree.getMutationTree()
828828
}
829-
reaction(
829+
reaction = (
830830
stateCallback: (state: ThisConfig['state']) => any,
831831
updateCallback: (state: ThisConfig['state']) => void,
832832
deep: boolean = false
833-
) {
833+
) => {
834834
if (deep) {
835835
const value = stateCallback(this.state)
836836

0 commit comments

Comments
 (0)