Skip to content

Commit bcb30cd

Browse files
authored
docs: elaborate on duplicate setHeaders calls (#12886)
1 parent f13aef7 commit bcb30cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

documentation/docs/20-core-concepts/20-load.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ export async function load({ fetch, setHeaders }) {
333333
}
334334
```
335335

336-
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.
336+
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.
337337

338338
## Using parent data
339339

0 commit comments

Comments
 (0)