File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
packages/node_modules/overmind/src Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,11 @@ export type Action<Value = void> = TAction<App, Value>
3737
3838export type Context = TContext < App >
3939
40- export type Derive < Value , Parent = any > = TDerive < App , Value , Parent >
40+ export type Derive < Value , Parent extends object = { } > = TDerive <
41+ App ,
42+ Value ,
43+ Parent
44+ >
4145
4246export type Reaction = TReaction < App >
4347
@@ -527,6 +531,10 @@ export function pipe(...operators) {
527531 return next ( null , operatorContext )
528532
529533 if ( operatorContext . value instanceof Promise ) {
534+ context . execution . emit ( EventType . OPERATOR_ASYNC , {
535+ ...context . execution ,
536+ isAsync : true ,
537+ } )
530538 operatorContext . value
531539 . then ( ( promiseValue ) =>
532540 run ( null , { ...operatorContext , value : promiseValue } )
You can’t perform that action at this time.
0 commit comments