yarn add @web3-react/frame-connector
supportedChainIds: number[]
import { FrameConnector } from '@web3-react/frame-connector'
const frame = new FrameConnector({ supportedChainIds: [1] })
import { UserRejectedRequestError } from '@web3-react/frame-connector'
function Component () {
const { error } = useWeb3React()
const isUserRejectedRequestError = error instanceof UserRejectedRequestError
// ...
}