Skip to content

Commit c31a4b5

Browse files
committed
site: rephrase to clarify that actions can have just one parameter.
Closes #5173
1 parent 25e9e68 commit c31a4b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

site/content/docs/02-template-syntax.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -773,7 +773,7 @@ Actions are functions that are called when an element is created. They can retur
773773

774774
---
775775

776-
An action can have parameters. If the returned value has an `update` method, it will be called whenever those parameters change, immediately after Svelte has applied updates to the markup.
776+
An action can have a parameter. If the returned value has an `update` method, it will be called whenever that parameter changes, immediately after Svelte has applied updates to the markup.
777777

778778
> Don't worry about the fact that we're redeclaring the `foo` function for every component instance — Svelte will hoist any functions that don't depend on local state out of the component definition.
779779

0 commit comments

Comments
 (0)