Skip to content

Commit d7abe2d

Browse files
committed
fix: promise.all the array of results received from ref.start
1 parent b76f0c0 commit d7abe2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/hooks/useChain.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export function useChain(
4646
each(controllers, (ctrl, i) =>
4747
each(queues[i] || [], update => ctrl.queue.push(update))
4848
)
49-
return ref.start()
49+
return Promise.all(ref.start())
5050
})
5151
}
5252
})

0 commit comments

Comments
 (0)