mirror of
https://github.com/vercel/next-learn.git
synced 2026-07-07 14:09:06 +00:00
Fix: Typo in comment (#544)
* Fix: Typo in comment Added missing word 'to'. * Update comment in final-example --------- Co-authored-by: Delba de Oliveira <delbabrown@gmail.com>
This commit is contained in:
@@ -12,7 +12,7 @@ import { formatCurrency } from './utils';
|
|||||||
import { unstable_noStore as noStore } from 'next/cache';
|
import { unstable_noStore as noStore } from 'next/cache';
|
||||||
|
|
||||||
export async function fetchRevenue() {
|
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'}).
|
// This is equivalent to in fetch(..., {cache: 'no-store'}).
|
||||||
noStore();
|
noStore();
|
||||||
try {
|
try {
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import {
|
|||||||
import { formatCurrency } from './utils';
|
import { formatCurrency } from './utils';
|
||||||
|
|
||||||
export async function fetchRevenue() {
|
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'}).
|
// This is equivalent to in fetch(..., {cache: 'no-store'}).
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user