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
  • Loading branch information
mindrones authored and Truffula committed Aug 3, 2020
1 parent 3d81b8c commit 453c727
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 453c727

Please sign in to comment.