diff --git a/frontend/src/component/feature/FeatureToggleList/FeatureToggleListTable.tsx b/frontend/src/component/feature/FeatureToggleList/FeatureToggleListTable.tsx index 1c941afa06c3..acbe3cea0d4b 100644 --- a/frontend/src/component/feature/FeatureToggleList/FeatureToggleListTable.tsx +++ b/frontend/src/component/feature/FeatureToggleList/FeatureToggleListTable.tsx @@ -45,6 +45,7 @@ import { FeatureSegmentCell } from 'component/common/Table/cells/FeatureSegmentC import { useUiFlag } from 'hooks/useUiFlag'; import { FeatureToggleListTable as LegacyFeatureToggleListTable } from './LegacyFeatureToggleListTable'; import { FeatureToggleListActions } from './FeatureToggleListActions/FeatureToggleListActions'; +import useLoading from 'hooks/useLoading'; export const featuresPlaceholder = Array(15).fill({ name: 'Name of the feature', @@ -107,6 +108,7 @@ const FeatureToggleListTableComponent: VFC = () => { value ? `${value}` : undefined, ), ); + const bodyLoadingRef = useLoading(loading); const { favorite, unfavorite } = useFavoriteFeaturesApi(); const onFavorite = useCallback( async (feature: FeatureSchema) => { @@ -257,7 +259,6 @@ const FeatureToggleListTableComponent: VFC = () => { return ( { state={filterState} /> - +
+ +
{ } }); } - }, [loading, ref]); + }, [loading]); return ref; };