Skip to content

Commit

Permalink
site: rephrase to clarify that actions can have just one parameter.
Browse files Browse the repository at this point in the history
Closes #5173
  • Loading branch information
mindrones committed Jul 21, 2020
1 parent 25e9e68 commit c31a4b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site/content/docs/02-template-syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,7 @@ Actions are functions that are called when an element is created. They can retur

---

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.
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.

> 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.
Expand Down

0 comments on commit c31a4b5

Please sign in to comment.