Added live updates to vendors in client

This commit is contained in:
Donkie
2023-10-15 21:36:02 +02:00
parent 886519e3b4
commit d5bd18f931
4 changed files with 35 additions and 6 deletions

View File

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