Skip to content

Commit

Permalink
Update docs/guides/data-loading.md
Browse files Browse the repository at this point in the history
  • Loading branch information
kentcdodds committed Jul 14, 2022
1 parent 50b6021 commit 67ec4a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/guides/data-loading.md
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ If you picked Cloudflare Pages as your environment, [Cloudflare Key Value][cloud
"dev:wrangler": "cross-env NODE_ENV=development wrangler pages dev ./public --kv PRODUCTS_KV"
```

This enable you to use the `PRODUCTS_KV` in a loader context:
This enables you to use the `PRODUCTS_KV` in a loader context (KV stores are added to loader context automatically by the Cloudflare Pages adapter):
```tsx
import type { LoaderFunction } from "@remix-run/cloudflare"; // or "@remix-run/node"
import { json } from "@remix-run/cloudflare"; // or "@remix-run/node"
Expand Down

0 comments on commit 67ec4a3

Please sign in to comment.