From 23a2d3bcac40d1e9372f65e1179bffef79cd4dac Mon Sep 17 00:00:00 2001 From: lebaudantoine Date: Sun, 4 Aug 2024 17:35:36 +0200 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F(frontend)=20support=20mutati?= =?UTF-8?q?on=20status=20in=20QueryAware=20component?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit useMutation has one more possible status, 'idle'. I was forced to add it to avoid any Typescript error. --- src/frontend/src/components/QueryAware.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/src/components/QueryAware.tsx b/src/frontend/src/components/QueryAware.tsx index 54946b56..98e8182a 100644 --- a/src/frontend/src/components/QueryAware.tsx +++ b/src/frontend/src/components/QueryAware.tsx @@ -13,7 +13,7 @@ export const QueryAware = ({ status, children, }: { - status: 'error' | 'pending' | 'success' + status: 'error' | 'idle' | 'pending' | 'success' children: React.ReactNode }) => { if (status === 'error') {