From f07baa74bb7acdcc6318e2107c3f6e9e5c0428aa Mon Sep 17 00:00:00 2001 From: Dennis Dudek Date: Sun, 18 Jul 2021 22:14:05 +0200 Subject: [PATCH] Document load reactivity (#1934) --- documentation/docs/03-loading.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/documentation/docs/03-loading.md b/documentation/docs/03-loading.md index bcf516cafe18..3cba41f3c3a5 100644 --- a/documentation/docs/03-loading.md +++ b/documentation/docs/03-loading.md @@ -77,7 +77,7 @@ If `load` returns nothing, SvelteKit will [fall through](#routing-advanced-fallt ### Input -The `load` function receives an object containing four fields — `page`, `fetch`, `session` and `context`. +The `load` function receives an object containing four fields — `page`, `fetch`, `session` and `context`. The `load` function is reactive to the parameters defined in the method signature. If the function is written as taking a single parameter, it will re-run everytime `page`, `session` or `context` changes. If the parameter is declared as a destructured object, it will only re-run when the declared properties change. #### page