Skip to content

Commit

Permalink
ci: apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Dec 7, 2024
1 parent 8950ab2 commit bfd590a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions docs/framework/react/start/middleware.md
Original file line number Diff line number Diff line change
Expand Up @@ -293,10 +293,12 @@ Here's an example of how this works:
```tsx
import { authMiddleware } from './authMiddleware'

const fn = createServerFn().middleware([authMiddleware]).handler(async ({ context }) => {
console.log(context.user)
// ...
})
const fn = createServerFn()
.middleware([authMiddleware])
.handler(async ({ context }) => {
console.log(context.user)
// ...
})
```

## Middleware Execution Order
Expand Down

0 comments on commit bfd590a

Please sign in to comment.