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; };