From 1817bd8b307189323f7f0b81d7eed3aa9aa40149 Mon Sep 17 00:00:00 2001 From: Wilson Hobbs Date: Thu, 9 Nov 2023 09:48:00 -0800 Subject: [PATCH] Update 30-form-actions.md --- documentation/docs/20-core-concepts/30-form-actions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/documentation/docs/20-core-concepts/30-form-actions.md b/documentation/docs/20-core-concepts/30-form-actions.md index d25e141eadc7..818b2f8fff36 100644 --- a/documentation/docs/20-core-concepts/30-form-actions.md +++ b/documentation/docs/20-core-concepts/30-form-actions.md @@ -364,7 +364,7 @@ To customise the behaviour, you can provide a `SubmitFunction` that runs immedia You can use these functions to show and hide loading UI, and so on. -If you return a callback, you may need to reproduce part of the default `use:enhance` behaviour, but without invalidating all data on a successful response. You can do so with `applyAction`: +If you return a callback, you may need to reproduce part of the default `use:enhance` behaviour, but without invalidating all data on a successful response. Whereas `update` will invalidate all data on successful responses, you can reproduce the behavior without invalidation using `applyAction`: ```diff /// file: src/routes/login/+page.svelte