Skip to content
This repository was archived by the owner on Jun 24, 2022. It is now read-only.

Commit

Permalink
Fix code style issues with ESLint
Browse files Browse the repository at this point in the history
  • Loading branch information
lint-action committed Jul 29, 2021
1 parent 631c202 commit beb1bf3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/state/application/updater.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

0 comments on commit beb1bf3

Please sign in to comment.