Skip to content

Commit add61fd

Browse files
authored
✨feat: promisable inspector (#35)
1 parent 4bf3600 commit add61fd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/core/src/utils.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,9 @@ export function compose(inspectors: Inspector[]) {
126126
...inspectorMap.normal,
127127
...inspectorMap.post,
128128
];
129-
return (getCtx: () => InspectorContext) => {
130-
return dispatch(0);
131-
function dispatch(i: number): void {
129+
return async (getCtx: () => InspectorContext) => {
130+
return await dispatch(0);
131+
async function dispatch(i: number): Promise<void> {
132132
const inspector = mergedInspectorFns[i];
133133
return inspector(getCtx(), dispatch.bind(null, i + 1));
134134
}

0 commit comments

Comments
 (0)