From aa04c35e73ddd1f2d38de68e437c0c3d697d42e2 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Sat, 24 Apr 2021 18:43:52 +0300 Subject: feat: add loading indicator stubs --- src/lib/ServiceList.tsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/lib') diff --git a/src/lib/ServiceList.tsx b/src/lib/ServiceList.tsx index be9a311..21b6077 100644 --- a/src/lib/ServiceList.tsx +++ b/src/lib/ServiceList.tsx @@ -12,7 +12,7 @@ const ServiceList: React.FC = () => { const service = useContext(ServiceContext); const history = useHistory(); const location = useLocation(); - const { data } = hooks[service.route].useList(location.search); + const { data, isValidating } = hooks[service.route].useList(location.search); const actions = service.actions || [{ name: 'Добавить', @@ -37,10 +37,16 @@ const ServiceList: React.FC = () => { return ( - + ); }; -- cgit v1.2.3