Skip to content

Commit a078a76

Browse files
authored
Update adding-parameters-to-actions/README.md from tutorial
Added more information about when an action's update method is called
1 parent 034037f commit a078a76

File tree

1 file changed

+1
-1
lines changed
  • content/tutorial/02-advanced-svelte/04-actions/02-adding-parameters-to-actions

1 file changed

+1
-1
lines changed

content/tutorial/02-advanced-svelte/04-actions/02-adding-parameters-to-actions/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Then, we need to pass some options into the action:
3030
</button>
3131
```
3232

33-
The tooltip now works — almost. If we change the text in the `<input>`, the tooltip will not reflect the new content. We can fix that by adding an `update` method to the returned object.
33+
The tooltip now works — almost. If we change the text in the `<input>`, the tooltip will not reflect the new content. We can fix that by adding an `update` method to the returned object. If the returned object has an update method, it will be called immediately after Svelte has applied updates to the markup whenever that parameter changes.
3434

3535
```js
3636
/// file: App.svelte

0 commit comments

Comments
 (0)