Skip to content

Commit

Permalink
docs: elaborate on duplicate setHeaders calls (#12886)
Browse files Browse the repository at this point in the history
  • Loading branch information
hyunbinseo authored Oct 28, 2024
1 parent f13aef7 commit bcb30cd
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 @@ -333,7 +333,7 @@ export async function load({ fetch, setHeaders }) {
}
```

Setting the same header multiple times (even in separate `load` functions) is an error — you can only set a given header once. You cannot add a `set-cookie` header with `setHeaders` — use `cookies.set(name, value, options)` instead.
Setting the same header multiple times (even in separate `load` functions) is an error. You can only set a given header once using the `setHeaders` function. You cannot add a `set-cookie` header with `setHeaders` — use `cookies.set(name, value, options)` instead.

## Using parent data

Expand Down

0 comments on commit bcb30cd

Please sign in to comment.