Skip to content

Commit

Permalink
docs(utils/defer): fix code highlighting (remix-run#5376)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattcroat authored Feb 7, 2023
1 parent 93f2af0 commit 335015d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions contributors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -490,3 +490,4 @@
- mitchelldirt
- krolebord
- panteliselef
- mattcroat
2 changes: 1 addition & 1 deletion docs/utils/defer.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ toc: false

This is a shortcut for creating a streaming/deferred response. It assumes you are using `utf-8` encoding. From a developer perspective it behaves just like [`json()`][json], but with the ability to transport promises to your UI components.

```ts lines=[2,5,10]
```ts lines=[1,7-10]
import { defer } from "@remix-run/node"; // or cloudflare/deno

export const loader = async () => {
Expand Down

0 comments on commit 335015d

Please sign in to comment.