File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed
packages/node_modules/overmind/src Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -559,6 +559,7 @@ export class Overmind<ThisConfig extends IConfiguration>
559559 this . eventHub . emit ( EventType . OPERATOR_ASYNC , execution )
560560 result . then ( ( ) => {
561561 execution . isRunning = false
562+ mutationTree . dispose ( )
562563 this . eventHub . emit ( EventType . OPERATOR_END , {
563564 ...execution ,
564565 isAsync : true ,
@@ -568,6 +569,7 @@ export class Overmind<ThisConfig extends IConfiguration>
568569 } )
569570 } else {
570571 execution . isRunning = false
572+ mutationTree . dispose ( )
571573 this . eventHub . emit ( EventType . OPERATOR_END , {
572574 ...execution ,
573575 isAsync : false ,
Original file line number Diff line number Diff line change @@ -260,6 +260,7 @@ export function createMutationOperator<ThisConfig extends IConfiguration>(
260260 operatorStopped ( context , err || value , {
261261 isSkipped : err ? true : options . isSkipped ,
262262 } )
263+ mutationTree . dispose ( )
263264 next ( err , createContext ( context , value ) )
264265 }
265266
You can’t perform that action at this time.
0 commit comments