CloneButton is not working
I have added a clone button on my list of data but the when I click on it it doesn't redirect me to the clone page. In version 3 there was not any issue but in version 4 it is not working.
resourceNameOrRouteName prop is deprecated, and you should use the resource prop instead. This might be the reason why the CloneButton is not working as expected. Here's an example of how to use the resource prop with the CloneButton:clone method of useNavigation (https://refine.dev/docs/api-reference/core/hooks/navigation/useNavigation/) and then redirect the app to /categories/clone/2.resource prop, and it should work as expected.Note: you can ask me a follow up question by @ mentioning me again 
uses Ant Design's component. It uses the clone method from useNavigation under the hood.
uses Mantine's component. It uses the clone method from useNavigation under the hood.
uses Chakra UI's component. It uses the clone method from useNavigation under the hood.
Note: you can ask me a follow up question by @ mentioning me again clone action in your resource definition to make it available for a resource.create action if you don't have action: "create" in its hooks and infer it from the route./<resource>/clone/id and render the same component that you're passing to the create action. With the new version, this is now on user space.resourceNameOrRouteNameclonecloneuseNavigation/categories/clone/2 Material UI component. It uses the clone uses Ant Design's component. It uses the clone uses Mantine's component. It uses the clone uses Chakra UI's component. It uses the cloneaction: "create"/<resource>/clone/idimport { CloneButton } from "@refinedev/mui"; // or "@refinedev/antd", "@refinedev/mantine", "@refinedev/chakra-ui" depending on your UI library
const MyCloneComponent = () => {
return (
<CloneButton resource="categories" recordItemId="2" />
);
};