Skip to content

Commit

Permalink
Update .changeset/headersfunctionargs.md
Browse files Browse the repository at this point in the history
Co-authored-by: Michaël De Boey <[email protected]>
  • Loading branch information
mcansh and MichaelDeBoey authored Apr 29, 2023
1 parent a3d3ac7 commit 831b1fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .changeset/headersfunctionargs.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
add `HeadersFunctionArgs` type to be consistent with loaders/actions/meta and allows for using `function`

```tsx
import type { HeadersFunctionArgs } from '@remix-run/*';
import type { HeadersArgs } from '@remix-run/node'; // or cloudflare/deno

export function headers({ loaderHeaders }: HeadersFunctionArgs) {
export function headers({ loaderHeaders }: HeadersArgs) {
return {
"x-my-custom-thing": loaderHeaders.get("x-my-custom-thing") || "fallback"
}
Expand Down

0 comments on commit 831b1fb

Please sign in to comment.