From 646898bc52d2bc22be9019871cf111e31b29d147 Mon Sep 17 00:00:00 2001 From: Max Date: Mon, 8 Jan 2024 20:36:50 +0800 Subject: [PATCH] Fix: Typo in comment (#544) * Fix: Typo in comment Added missing word 'to'. * Update comment in final-example --------- Co-authored-by: Delba de Oliveira --- dashboard/final-example/app/lib/data.ts | 2 +- dashboard/starter-example/app/lib/data.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dashboard/final-example/app/lib/data.ts b/dashboard/final-example/app/lib/data.ts index 9fb3519..5ca645b 100644 --- a/dashboard/final-example/app/lib/data.ts +++ b/dashboard/final-example/app/lib/data.ts @@ -12,7 +12,7 @@ import { formatCurrency } from './utils'; import { unstable_noStore as noStore } from 'next/cache'; export async function fetchRevenue() { - // Add noStore() here prevent the response from being cached. + // Add noStore() here to prevent the response from being cached. // This is equivalent to in fetch(..., {cache: 'no-store'}). noStore(); try { diff --git a/dashboard/starter-example/app/lib/data.ts b/dashboard/starter-example/app/lib/data.ts index 4c699a3..3e32426 100644 --- a/dashboard/starter-example/app/lib/data.ts +++ b/dashboard/starter-example/app/lib/data.ts @@ -11,7 +11,7 @@ import { import { formatCurrency } from './utils'; export async function fetchRevenue() { - // Add noStore() here prevent the response from being cached. + // Add noStore() here to prevent the response from being cached. // This is equivalent to in fetch(..., {cache: 'no-store'}). try {