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 c02667d commit cc576e0Copy full SHA for cc576e0
packages/node_modules/proxy-state-tree/src/index.ts
@@ -135,8 +135,9 @@ export class ProxyStateTree<T extends object> implements IProxyStateTree<T> {
135
onMutation(callback: IMutationCallback) {
136
this.mutationCallbacks.push(callback)
137
138
- return () =>
+ return () => {
139
this.mutationCallbacks.splice(this.mutationCallbacks.indexOf(callback), 1)
140
+ }
141
}
142
forceFlush() {
143
const emptyMutations = []
0 commit comments