Skip to content

Commit

Permalink
Merge pull request #1 from coryvirok/coryvirok-load-docs-clarification
Browse files Browse the repository at this point in the history
Update 20-load.md to clarify load rerun behavior
  • Loading branch information
coryvirok authored Aug 8, 2023
2 parents f0fdc4e + 38b34cf commit 81865e9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions documentation/docs/20-core-concepts/20-load.md
Original file line number Diff line number Diff line change
Expand Up @@ -595,6 +595,7 @@ To summarize, a `load` function will rerun in the following situations:

- It references a property of `params` whose value has changed
- It references a property of `url` (such as `url.pathname` or `url.search`) whose value has changed. Properties in `request.url` are _not_ tracked
- It references `url.searchParams`. Any changes to the URL will cause `load` to be rerun regardless if the value of `url.searchParams` has changed.
- It calls `await parent()` and a parent `load` function reran
- It declared a dependency on a specific URL via [`fetch`](#making-fetch-requests) (universal load only) or [`depends`](types#public-types-loadevent), and that URL was marked invalid with [`invalidate(url)`](modules#$app-navigation-invalidate)
- All active `load` functions were forcibly rerun with [`invalidateAll()`](modules#$app-navigation-invalidateall)
Expand Down

0 comments on commit 81865e9

Please sign in to comment.