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 99b1eaa commit acc9ee4Copy full SHA for acc9ee4
packages/node_modules/overmind/src/index.ts
@@ -7,6 +7,7 @@ import {
7
IMutation,
8
VALUE,
9
IMutationCallback,
10
+ IFlushCallback,
11
} from 'proxy-state-tree'
12
import { Derived } from './derived'
13
import { Devtools, Message, safeValue, safeValues } from './Devtools'
@@ -631,6 +632,9 @@ export class Overmind<Config extends Configuration> implements Configuration {
631
632
addMutationListener = (cb: IMutationCallback) => {
633
return this.proxyStateTree.onMutation(cb)
634
}
635
+ addFlushListener = (cb: IFlushCallback) => {
636
+ return this.proxyStateTree.onFlush(cb)
637
+ }
638
639
640
/*
0 commit comments