diff --git a/app/soapbox/entity-store/hooks/useEntityActions.ts b/app/soapbox/entity-store/hooks/useEntityActions.ts index 63ede41d5..fa90765b0 100644 --- a/app/soapbox/entity-store/hooks/useEntityActions.ts +++ b/app/soapbox/entity-store/hooks/useEntityActions.ts @@ -28,11 +28,13 @@ function useEntityActions( const create = useCreateEntity(path, { method: 'post', url: endpoints.post }, opts); const createEntity: typeof create = async (...args) => { + setIsLoading(true); await create(...args); setIsLoading(false); }; const deleteEntity: typeof _delete = async (...args) => { + setIsLoading(true); await _delete(...args); setIsLoading(false); };