From 2cbb45de851179adae44f04fad1c3c76a1d06e4d Mon Sep 17 00:00:00 2001 From: Mateusz Kwasniewski Date: Wed, 3 Apr 2024 10:20:04 +0200 Subject: [PATCH] fix: loading state (#6765) --- frontend/src/hooks/useLoading.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/hooks/useLoading.ts b/frontend/src/hooks/useLoading.ts index 11138d5f06..9db84aff32 100644 --- a/frontend/src/hooks/useLoading.ts +++ b/frontend/src/hooks/useLoading.ts @@ -16,7 +16,7 @@ const useLoading = (loading: boolean, selector = '[data-loading=true]') => { } }); } - }, [loading]); + }, [loading, selector, ref]); return ref; };