Skip to content

Commit

Permalink
restructure headers function type
Browse files Browse the repository at this point in the history
  • Loading branch information
kentcdodds committed Jan 16, 2025
1 parent 4e1e7a0 commit 2f5cf2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/routes/settings+/profile.connections.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,12 @@ export async function loader({ request }: Route.LoaderArgs) {
)
}

export const headers = (({ loaderHeaders }) => {
export const headers: Route.HeadersFunction = ({ loaderHeaders }) => {
const headers = {
'Server-Timing': loaderHeaders.get('Server-Timing') ?? '',
}
return headers
}) satisfies Route.HeadersFunction
}

export async function action({ request }: Route.ActionArgs) {
const userId = await requireUserId(request)
Expand Down

0 comments on commit 2f5cf2c

Please sign in to comment.