Version: 4.xx.xx
Source Code<AutoSaveIndicator>
<AutoSaveIndicator>
component from refine for Material UI can be used to communicate auto-save status to the user.
Simple usage is as follows:
import { AutoSaveIndicator, useForm } from "@refinedev/mui";
const MyComponent = () => {
const { refineCore: { autoSaveProps } } = useForm({
refineCoreProps: {
autoSave: {
enabled: true,
},
}
});
return (
<AutoSaveIndicator {...autoSaveProps}/>
);
};