diff --git a/apps/nextjs/package.json b/apps/nextjs/package.json
index 2ab505e..c63ac4c 100644
--- a/apps/nextjs/package.json
+++ b/apps/nextjs/package.json
@@ -40,6 +40,7 @@
"lucide-react": "^0.292.0",
"next": "^14.0.4",
"next-themes": "^0.2.1",
+ "nextjs-toploader": "^1.6.4",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-hook-form": "^7.47.0",
diff --git a/apps/nextjs/src/app/providers.tsx b/apps/nextjs/src/app/providers.tsx
index ce75158..04a86f0 100644
--- a/apps/nextjs/src/app/providers.tsx
+++ b/apps/nextjs/src/app/providers.tsx
@@ -11,6 +11,7 @@ import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
import { ReactQueryDevtools } from "@tanstack/react-query-devtools";
import { ReactQueryStreamedHydration } from "@tanstack/react-query-next-experimental";
import { loggerLink, unstable_httpBatchStreamLink } from "@trpc/client";
+import NextTopLoader from "nextjs-toploader";
import superjson from "superjson";
import colors from "@vivat/color-palette";
@@ -77,6 +78,7 @@ export function TRPCReactProvider(props: {
enableSystem
disableTransitionOnChange
>
+
{props.children}
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 4da7f44..416462c 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -303,6 +303,9 @@ importers:
next-themes:
specifier: ^0.2.1
version: 0.2.1(next@14.0.4)(react-dom@18.2.0)(react@18.2.0)
+ nextjs-toploader:
+ specifier: ^1.6.4
+ version: 1.6.4(next@14.0.4)(react-dom@18.2.0)(react@18.2.0)
react:
specifier: 18.2.0
version: 18.2.0
@@ -4904,6 +4907,10 @@ packages:
resolution: {integrity: sha512-37i+OaWTh9qeK4LSHPsyRC7NahnGotNuZvjLSgcPzblpHB3rrCJxAOgI5gCdKm7coonsaX1Of0ILiTcnZjbfxA==}
dev: false
+ /@types/nprogress@0.2.3:
+ resolution: {integrity: sha512-k7kRA033QNtC+gLc4VPlfnue58CM1iQLgn1IMAU8VPHGOj7oIHPp9UlhedEnD/Gl8evoCjwkZjlBORtZ3JByUA==}
+ dev: false
+
/@types/parse-json@4.0.1:
resolution: {integrity: sha512-3YmXzzPAdOTVljVMkTMBdBEvlOLg2cDQaDhnnhT3nT9uDbnJzjWhKlzb+desT12Y7tGqaN6d+AbozcKzyL36Ng==}
dev: false
@@ -10755,6 +10762,21 @@ packages:
- babel-plugin-macros
dev: false
+ /nextjs-toploader@1.6.4(next@14.0.4)(react-dom@18.2.0)(react@18.2.0):
+ resolution: {integrity: sha512-KYLQ+0MvGdFk9JwOQfRtaYBAsyuX67Ca5QTa51RGNO4gQx64KLSE+ryHjUQ5LcDczHotp0l32GgksQW9vucUkw==}
+ peerDependencies:
+ next: '>= 6.0.0'
+ react: '>= 16.0.0'
+ react-dom: '>= 16.0.0'
+ dependencies:
+ '@types/nprogress': 0.2.3
+ next: 14.0.4(react-dom@18.2.0)(react@18.2.0)
+ nprogress: 0.2.0
+ prop-types: 15.8.1
+ react: 18.2.0
+ react-dom: 18.2.0(react@18.2.0)
+ dev: false
+
/nice-try@1.0.5:
resolution: {integrity: sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==}
dev: false
@@ -10923,6 +10945,10 @@ packages:
path-key: 4.0.0
dev: false
+ /nprogress@0.2.0:
+ resolution: {integrity: sha512-I19aIingLgR1fmhftnbWWO3dXc0hSxqHQHQb3H8m+K3TnEn/iSeTZZOyvKXWqQESMwuUVnatlCnZdLBZZt2VSA==}
+ dev: false
+
/nullthrows@1.1.1:
resolution: {integrity: sha512-2vPPEi+Z7WqML2jZYddDIfy5Dqb0r2fze2zTxNNknZaFpVHU3mFB3R+DWeJWGVx0ecvttSGlJTI+WG+8Z4cDWw==}
dev: false