Next.js & Ant Design - Custom ThemedLayoutV2 not working
Hi, I tried to swizzle the ThemedLayout as I need to edit the Sider. But if I follow the documentation:
src/app/layout.tsx
then I was getting errors that I can't use hooks in a server component. So I created client component refine-context.tsx:
and src/app/layout.tsx:
Then I end up with "duplicate" layout (the customized layout is correct, but then I am getting the default one inside the customized one..)
Does anyone know how to sort that out properly?
Thank you in advance!
src/app/layout.tsx
then I was getting errors that I can't use hooks in a server component. So I created client component refine-context.tsx:
and src/app/layout.tsx:
Then I end up with "duplicate" layout (the customized layout is correct, but then I am getting the default one inside the customized one..)
Does anyone know how to sort that out properly?
Thank you in advance!

