Skip to content

Commit 04b5d44

Browse files
authored
Small typo - Update cache.md (#6935)
1 parent c116c42 commit 04b5d44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/reference/react/cache.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ By caching a long-running data fetch, you can kick off asynchronous work prior t
226226
```jsx [[2, 6, "await getUser(id)"], [1, 17, "getUser(id)"]]
227227
const getUser = cache(async (id) => {
228228
return await db.user.query(id);
229-
}
229+
})
230230

231231
async function Profile({id}) {
232232
const user = await getUser(id);

0 commit comments

Comments
 (0)