hydration error with antd modal
I am using nextjs13. I get a hydration error the moment theres a modal on the page. The subsequent render removes the error.
show and props to control the modal's visibility. Here's an example from the documentation (https://refine.dev/docs/ui-integrations/ant-design/hooks/use-modal):show function is used to open the modal. You might want to try this approach and see if it resolves your issue. If the problem persists, it could be related to a specific issue with Next.js or your application's configuration.useModalcloseimport { useModal } from "@refinedev/antd";
import { Modal, Button } from "antd";
export const PostList: React.FC = () => {
const { show, modalProps } = useModal();
return (
<>
<Button onClick={show}>Show Modal</Button>
<Modal {...modalProps}>
<p>Modal Content</p>
</Modal>
</>
);
};