Replies: 1 comment
-
self answer FIrst, The _app.js code is applied to Rootlayout.js |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi.
My project is made up Nextjs with App router.
Before common way to build up website(page router system), The page router in nextjs is easy to apply.
However, The AppRouter is not a using _app.js, also _document.js. So I found searching "Layout.js"(root layout) way to where I apply this code.
But I don't know set
<StoreProvider {...pageProps} initialState={pageProps.initialState}>
Let me know how to alternate above code in AppRouter nextjs
Beta Was this translation helpful? Give feedback.
All reactions