From dd1f28978b1d704d4a628f82df26501756db9962 Mon Sep 17 00:00:00 2001 From: TownCube <15699466+TownCube@users.noreply.github.com> Date: Thu, 30 Jan 2025 04:17:40 +1000 Subject: [PATCH] Add task behavior of empty args array --- packages/lit-dev-content/site/docs/v3/data/task.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/lit-dev-content/site/docs/v3/data/task.md b/packages/lit-dev-content/site/docs/v3/data/task.md index 85748e5c0..3dd21e6ce 100644 --- a/packages/lit-dev-content/site/docs/v3/data/task.md +++ b/packages/lit-dev-content/site/docs/v3/data/task.md @@ -241,7 +241,7 @@ By default, Tasks will run any time the arguments change. This is controlled by #### Auto-run -In _auto-run_ mode, the task will call the `args` function when the host has updated, compare the args to the previous args, and invoke the task function if they have changed. A task without `args` defined is in manual mode. +In _auto-run_ mode, the task will call the `args` function when the host has updated, compare the args to the previous args, and invoke the task function if they have changed. A task with an empty `args` array runs once. A task without `args` defined is in manual mode. #### Manual mode