Skip to content

Commit

Permalink
Document load reactivity (#1934)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kapsonfire-DE authored Jul 18, 2021
1 parent fa55dbe commit f07baa7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion documentation/docs/03-loading.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit f07baa7

Please sign in to comment.