From a078a762933071fb5478665255885049c4f1b6b5 Mon Sep 17 00:00:00 2001 From: Beqa Date: Sat, 24 Feb 2024 16:14:11 +0400 Subject: [PATCH] Update adding-parameters-to-actions/README.md from tutorial Added more information about when an action's update method is called --- .../04-actions/02-adding-parameters-to-actions/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/tutorial/02-advanced-svelte/04-actions/02-adding-parameters-to-actions/README.md b/content/tutorial/02-advanced-svelte/04-actions/02-adding-parameters-to-actions/README.md index 7c765ef45..ee15d2f9d 100644 --- a/content/tutorial/02-advanced-svelte/04-actions/02-adding-parameters-to-actions/README.md +++ b/content/tutorial/02-advanced-svelte/04-actions/02-adding-parameters-to-actions/README.md @@ -30,7 +30,7 @@ Then, we need to pass some options into the action: ``` -The tooltip now works — almost. If we change the text in the ``, the tooltip will not reflect the new content. We can fix that by adding an `update` method to the returned object. +The tooltip now works — almost. If we change the text in the ``, 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. ```js /// file: App.svelte