Commit beb1bf3b authored by Lint Action's avatar Lint Action

Fix code style issues with ESLint

parent 631c202c
...@@ -9,13 +9,12 @@ import { updateBlockNumber, updateChainId } from './actions' ...@@ -9,13 +9,12 @@ import { updateBlockNumber, updateChainId } from './actions'
function useQueryCacheInvalidator() { function useQueryCacheInvalidator() {
const dispatch = useAppDispatch() const dispatch = useAppDispatch()
// subscribe to `chainId` changes in the redux store rather than Web3 // subscribe to `chainId` changes in the redux store rather than Web3
// this will ensure that when `invalidateTags` is called, the latest // this will ensure that when `invalidateTags` is called, the latest
// `chainId` is available in redux to build the subgraph url // `chainId` is available in redux to build the subgraph url
const chainId = useAppSelector((state) => state.application.chainId) const chainId = useAppSelector((state) => state.application.chainId)
useEffect(() => { useEffect(() => {
dispatch(api.util.invalidateTags([CHAIN_TAG])) dispatch(api.util.invalidateTags([CHAIN_TAG]))
}, [chainId, dispatch]) }, [chainId, dispatch])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment