Fix code style issues with ESLint

This commit is contained in:
Lint Action 2021-07-29 17:26:43 +00:00
parent 631c202c49
commit beb1bf3bdc

@ -9,13 +9,12 @@ import { updateBlockNumber, updateChainId } from './actions'
function useQueryCacheInvalidator() {
const dispatch = useAppDispatch()
// subscribe to `chainId` changes in the redux store rather than Web3
// this will ensure that when `invalidateTags` is called, the latest
// `chainId` is available in redux to build the subgraph url
const chainId = useAppSelector((state) => state.application.chainId)
useEffect(() => {
dispatch(api.util.invalidateTags([CHAIN_TAG]))
}, [chainId, dispatch])