Skip to content

Commit 437c6ef

Browse files
fix lint
1 parent 1ea3502 commit 437c6ef

File tree

1 file changed

+2
-2
lines changed
  • x-pack/plugins/security_solution/public/hosts/containers/hosts

1 file changed

+2
-2
lines changed

x-pack/plugins/security_solution/public/hosts/containers/hosts/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
import deepEqual from 'fast-deep-equal';
88
import { noop } from 'lodash/fp';
99
import { useCallback, useEffect, useRef, useState } from 'react';
10-
import { useSelector } from 'react-redux';
1110

1211
import { DEFAULT_INDEX_KEY } from '../../../../common/constants';
1312
import { HostsEdges, PageInfoPaginated } from '../../../graphql/types';
1413
import { inputsModel, State } from '../../../common/store';
1514
import { createFilter } from '../../../common/containers/helpers';
1615
import { useKibana } from '../../../common/lib/kibana';
16+
import { useShallowEqualSelector } from '../../../common/hooks/use_selector';
1717
import { hostsModel, hostsSelectors } from '../../store';
1818
import { generateTablePaginationOptions } from '../../../common/components/paginated_table/helpers';
1919
import {
@@ -59,7 +59,7 @@ export const useAllHost = ({
5959
type,
6060
}: UseAllHost): [boolean, HostsArgs] => {
6161
const getHostsSelector = hostsSelectors.hostsSelector();
62-
const { activePage, direction, limit, sortField } = useSelector((state: State) =>
62+
const { activePage, direction, limit, sortField } = useShallowEqualSelector((state: State) =>
6363
getHostsSelector(state, type)
6464
);
6565
const { data, notifications, uiSettings } = useKibana().services;

0 commit comments

Comments
 (0)