From 8e047a99a9f9622a6067191bc8148afcafcd2909 Mon Sep 17 00:00:00 2001 From: Delba de Oliveira Date: Mon, 30 Oct 2023 12:27:33 +0000 Subject: [PATCH 1/2] Remove PPR flag --- dashboard/final-example/next.config.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/dashboard/final-example/next.config.js b/dashboard/final-example/next.config.js index dec7014f..658404ac 100644 --- a/dashboard/final-example/next.config.js +++ b/dashboard/final-example/next.config.js @@ -1,8 +1,4 @@ /** @type {import('next').NextConfig} */ -const nextConfig = { - experimental: { - ppr: true, - }, -}; +const nextConfig = {}; module.exports = nextConfig; From 55500e1680891fd72b31d72c484ed72651c6be04 Mon Sep 17 00:00:00 2001 From: Delba de Oliveira Date: Mon, 30 Oct 2023 12:33:20 +0000 Subject: [PATCH 2/2] Add no store to fetchInvoiceById --- dashboard/final-example/app/lib/data.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/dashboard/final-example/app/lib/data.ts b/dashboard/final-example/app/lib/data.ts index 6704fe9e..028716db 100644 --- a/dashboard/final-example/app/lib/data.ts +++ b/dashboard/final-example/app/lib/data.ts @@ -150,6 +150,7 @@ export async function fetchInvoicesPages(query: string) { } export async function fetchInvoiceById(id: string) { + noStore(); try { const data = await sql` SELECT