File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
packages/react-experiment/src Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @lightmill/react-experiment ' : major
3
+ ---
4
+
5
+ Do not flush before completing a run, and do not require loggers to define a flush method.
Original file line number Diff line number Diff line change @@ -31,7 +31,6 @@ type TimelineAction<T> =
31
31
export type Logger = {
32
32
startRun ( ) : Promise < void > ;
33
33
addLog ( log : RegisteredLog ) : Promise < void > ;
34
- flush ( ) : Promise < void > ;
35
34
completeRun ( ) : Promise < void > ;
36
35
cancelRun ?( ) : Promise < void > ;
37
36
} ;
@@ -117,7 +116,6 @@ export default function useManagedTimeline<Task extends BaseTask>(
117
116
} ) ;
118
117
if ( hasEnded ) return ;
119
118
dispatch ( { type : 'all-tasks-completed' } ) ;
120
- await logger ?. flush ( ) ;
121
119
await logger ?. completeRun ( ) ;
122
120
if ( hasEnded ) return ;
123
121
dispatch ( { type : 'run-completed' } ) ;
You can’t perform that action at this time.
0 commit comments