Skip to content

Commit 6ecf97f

Browse files
committed
fix: async "to" cancellation
1 parent 7e4f8df commit 6ecf97f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/runAsync.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export async function runAsync<T>(
8181
const { asyncId } = props
8282
const cancelToken = Symbol.for('cancel')
8383
const isCancelled = () =>
84-
to !== state.asyncTo || asyncId < (state.cancelId || 0)
84+
to !== state.asyncTo || asyncId <= (state.cancelId || 0)
8585

8686
const defaultProps: DefaultProps = {}
8787
each(DEFAULT_PROPS, prop => {

0 commit comments

Comments
 (0)