Added live updates to filaments in client

This commit is contained in:
Donkie
2023-10-15 21:35:49 +02:00
parent 37ae1f7de1
commit 886519e3b4
4 changed files with 49 additions and 16 deletions

View File

@@ -16,7 +16,9 @@ const { Title } = Typography;
export const FilamentShow: React.FC<IResourceComponentsProps> = () => {
const t = useTranslate();
const { queryResult } = useShow<IFilament>();
const { queryResult } = useShow<IFilament>({
liveMode: "auto",
});
const { data, isLoading } = queryResult;
const record = data?.data;