Fix code style issues with ESLint
This commit is contained in:
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])
|
||||
|
Loading…
Reference in New Issue
Block a user