Skip to content

Commit 13f8719

Browse files
committed
remove isRerunning option
1 parent 4d9ac35 commit 13f8719

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/qwik/src/core/use/use-task.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -350,8 +350,7 @@ export const useTaskQrl = (qrl: QRL<TaskFn>, opts?: UseTaskOptions): void => {
350350
export const runTask2 = (
351351
task: Task,
352352
container: Container2,
353-
host: HostElement,
354-
isRerunning = false
353+
host: HostElement
355354
): ValueOrPromise<void> => {
356355
task.$flags$ &= ~TaskFlags.DIRTY;
357356
const iCtx = newInvokeContext(container.$locale$, host as fixMeAny, undefined, TaskEvent);
@@ -403,7 +402,7 @@ export const runTask2 = (
403402
cleanup,
404403
(err: unknown) => {
405404
if (isPromise(err)) {
406-
return err.then(() => runTask2(task, container, host, true));
405+
return err.then(() => runTask2(task, container, host));
407406
} else {
408407
return handleError(err);
409408
}

0 commit comments

Comments
 (0)