Skip to content

Commit 3d6045b

Browse files
authored
Add task behavior of empty args array (#1394)
1 parent 386f8c0 commit 3d6045b

File tree

1 file changed

+1
-1
lines changed
  • packages/lit-dev-content/site/docs/v3/data

1 file changed

+1
-1
lines changed

packages/lit-dev-content/site/docs/v3/data/task.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ By default, Tasks will run any time the arguments change. This is controlled by
241241

242242
#### Auto-run
243243

244-
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.
244+
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.
245245

246246
#### Manual mode
247247

0 commit comments

Comments
 (0)