Skip to content

Commit

Permalink
docs: mention goto function alongside redirect (#8781)
Browse files Browse the repository at this point in the history
Co-authored-by: Simon H <[email protected]>
Co-authored-by: Rich Harris <[email protected]>
  • Loading branch information
3 people authored Jan 30, 2023
1 parent d58da28 commit ccf9659
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions documentation/docs/20-core-concepts/20-load.md
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,8 @@ export function load({ locals }) {

> Make sure you're not catching the thrown redirect, which results in a noop.
In the browser, you can also navigate programmatically outside of a `load` function using [`goto`](modules#$app-navigation-goto) from [`$app.navigation`](modules#$app-navigation).

## Promise unwrapping

Top-level promises will be awaited, which makes it easy to return multiple promises without creating a waterfall:
Expand Down

0 comments on commit ccf9659

Please sign in to comment.