Skip to content

Commit 5fb6e5e

Browse files
committed
fix: prevent next.js from removing global styles
1 parent 863b35e commit 5fb6e5e

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"dependencies": {
2121
"@hookform/devtools": "^4.3.1",
2222
"@hookform/resolvers": "^3.3.1",
23+
"@madeinhaus/nextjs-page-transition": "^3.1.1",
2324
"@prisma/client": "^5.3.1",
2425
"@svgr/webpack": "^8.1.0",
2526
"@tanstack/react-query": "^4.35.3",

pnpm-lock.yaml

+15
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/pages/_app.tsx

+3
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@ import { sdkInitOptions } from '@/lib/twa-sdk';
88
import { ReactQueryDevtools } from '@tanstack/react-query-devtools';
99
import RootLayout from '@/layouts/RootLayout';
1010
import PageTransition from '@/components/PageTransition';
11+
import { useNextCssRemovalPrevention } from '@madeinhaus/nextjs-page-transition';
1112

1213
export default function App({ Component, pageProps }: AppProps) {
14+
useNextCssRemovalPrevention();
15+
1316
return (
1417
<QueryClientProvider client={queryClient}>
1518
<SDKProvider initOptions={sdkInitOptions}>

0 commit comments

Comments
 (0)