We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec9f60f commit 9afbe32Copy full SHA for 9afbe32
packages/node_modules/overmind/src/index.ts
@@ -826,11 +826,11 @@ export class Overmind<ThisConfig extends IConfiguration>
826
getMutationTree(): IMutationTree<any> {
827
return this.proxyStateTree.getMutationTree()
828
}
829
- reaction(
+ reaction = (
830
stateCallback: (state: ThisConfig['state']) => any,
831
updateCallback: (state: ThisConfig['state']) => void,
832
deep: boolean = false
833
- ) {
+ ) => {
834
if (deep) {
835
const value = stateCallback(this.state)
836
0 commit comments