Skip to content

Commit 90e41cf

Browse files
authored
chore: cache components feedback (#85241)
Just a couple of mistakes
1 parent 8ede5d0 commit 90e41cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/01-app/01-getting-started/06-cache-components.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ Tag cached data with [`cacheTag`](/docs/app/api-reference/functions/cacheTag) an
267267

268268
#### With `updateTag`
269269

270-
Use `updateTag` when you need to expire and immediately refreshing cached data within the same request:
270+
Use `updateTag` when you need to expire and immediately refresh cached data within the same request:
271271

272272
```tsx filename="app/actions.ts" highlight={1,4,5,13}
273273
import { cacheTag, updateTag } from 'next/cache'
@@ -278,7 +278,7 @@ export async function getCart() {
278278
// fetch data
279279
}
280280

281-
export async function updateCard(itemId: string) {
281+
export async function updateCart(itemId: string) {
282282
'use server'
283283
// write data using the itemId
284284
// update the user cart

0 commit comments

Comments
 (0)