Skip to content

Commit

Permalink
docs: Update 20-load.md (#8566)
Browse files Browse the repository at this point in the history
Add the `setHeaders` to the list of functions available in both universal and server load functions. Also change the order in which they are presented, so that the most common functions come first. I used the same order of https://kit.svelte.dev/docs/types#public-types-loadevent
  • Loading branch information
paulovieira authored Jan 17, 2023
1 parent a47b55a commit 1fef868
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion documentation/docs/20-core-concepts/20-load.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ Conceptually, they're the same thing, but there are some important differences t

### Input

Both universal and server `load` functions have access to properties describing the request (`params`, `route` and `url`) and various functions (`depends`, `fetch` and `parent`). These are described in the following sections.
Both universal and server `load` functions have access to properties describing the request (`params`, `route` and `url`) and various functions (`fetch`, `setHeaders`, `parent` and `depends`). These are described in the following sections.

Server `load` functions are called with a `ServerLoadEvent`, which inherits `clientAddress`, `cookies`, `locals`, `platform` and `request` from `RequestEvent`.

Expand Down

0 comments on commit 1fef868

Please sign in to comment.