We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1451f0 commit f14e7f1Copy full SHA for f14e7f1
src/Task.ts
@@ -15,7 +15,6 @@ import {
15
dropEnqueued,
16
} from "./utils/general";
17
import { Resolved, TaskCb } from "./types/index";
18
-import { getCurrentScope } from "vue";
19
20
export type Task<T, U extends any[]> = {
21
// Lifecycle state
@@ -65,8 +64,7 @@ export default function useTask<T, U extends any[]>(
65
64
cb: TaskCb<T, U>,
66
options = { cancelOnUnmount: true }
67
): Task<Resolved<T>, U> {
68
- const parentScope = getCurrentScope();
69
- const scope = parentScope || effectScope();
+ const scope = effectScope();
70
const content = _reactiveContent({
71
_isRestartable: false,
72
_isDropping: false,
0 commit comments