Skip to main content
Detag title, fix case
Source Link
halfer
  • 20.2k
  • 20
  • 112
  • 208

Redux how How to warp dynamic route nextjsroutes in Nextjs and Redux

I am trying to warp my dynamic route with reduxRedux provider but it's telling me that my component should be warp with reduxRedux provider which I already did. I am using nextjsNext.js 13.5

myMy layout.tsx for dynamic route:

blog->
   [slug]->
      page.js
      layout.tsx


export default function DynamicLayout({
  children,
}: {
  children: React.ReactNode
}) {
  return (
    <Providers>
    <>
      
   
        {children}
       
      
       
    </>
    </Providers>
  )
}

Redux how to warp dynamic route nextjs

I am trying to warp my dynamic route with redux provider but it's telling me that my component should be warp with redux provider which I already did. I am using nextjs 13.5

my layout.tsx for dynamic route

blog->
   [slug]->
      page.js
      layout.tsx


export default function DynamicLayout({
  children,
}: {
  children: React.ReactNode
}) {
  return (
    <Providers>
    <>
      
   
        {children}
       
      
       
    </>
    </Providers>
  )
}

How to warp dynamic routes in Nextjs and Redux

I am trying to warp my dynamic route with Redux provider but it's telling me that my component should be warp with Redux provider which I already did. I am using Next.js 13.5

My layout.tsx for dynamic route:

blog->
   [slug]->
      page.js
      layout.tsx


export default function DynamicLayout({
  children,
}: {
  children: React.ReactNode
}) {
  return (
    <Providers>
    <>
      
   
        {children}
       
      
       
    </>
    </Providers>
  )
}
Source Link
boyenec
  • 1.6k
  • 12
  • 47

Redux how to warp dynamic route nextjs

I am trying to warp my dynamic route with redux provider but it's telling me that my component should be warp with redux provider which I already did. I am using nextjs 13.5

my layout.tsx for dynamic route

blog->
   [slug]->
      page.js
      layout.tsx


export default function DynamicLayout({
  children,
}: {
  children: React.ReactNode
}) {
  return (
    <Providers>
    <>
      
   
        {children}
       
      
       
    </>
    </Providers>
  )
}