Skip to content

Commit

Permalink
Update src/content/reference/react/cache.md
Browse files Browse the repository at this point in the history
Co-authored-by: M Haidar Hanif <[email protected]>
  • Loading branch information
FelixFern and mhaidarhanif authored Jul 11, 2024
1 parent bea8071 commit 60213cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content/reference/react/cache.md
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ async function AnimatedWeatherCard({city}) {

### Pramuat data {/*preload-data*/}

Dengan melakukan *cache* pada data hasil *fetch* yang panjang, anda dapat memulai proses asinkron sebelum me-*render* komponen.
Dengan melakukan *cache* pada data hasil *fetch* yang panjang, Anda dapat memulai proses asinkron sebelum me-*render* komponen.

```jsx [[2, 6, "await getUser(id)"], [1, 17, "getUser(id)"]]
const getUser = cache(async (id) => {
Expand Down

0 comments on commit 60213cb

Please sign in to comment.