import { shallowEqual , useSelector } from 'react-redux' ; import { StoreState } from 'types' ; export function useShallowEqualSelector < TReturn > ( selector ) { return useSelector ( selector , shallowEqual ) ; }