Skip to content

Commit

Permalink
remove isRerunning option
Browse files Browse the repository at this point in the history
  • Loading branch information
Varixo committed Aug 27, 2024
1 parent 4d9ac35 commit 13f8719
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/qwik/src/core/use/use-task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -350,8 +350,7 @@ export const useTaskQrl = (qrl: QRL<TaskFn>, opts?: UseTaskOptions): void => {
export const runTask2 = (
task: Task,
container: Container2,
host: HostElement,
isRerunning = false
host: HostElement
): ValueOrPromise<void> => {
task.$flags$ &= ~TaskFlags.DIRTY;
const iCtx = newInvokeContext(container.$locale$, host as fixMeAny, undefined, TaskEvent);
Expand Down Expand Up @@ -403,7 +402,7 @@ export const runTask2 = (
cleanup,
(err: unknown) => {
if (isPromise(err)) {
return err.then(() => runTask2(task, container, host, true));
return err.then(() => runTask2(task, container, host));
} else {
return handleError(err);
}
Expand Down

0 comments on commit 13f8719

Please sign in to comment.