You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With web3modal v5.1.9 it was possible to use allowUnsupportedChain: true in the createWeb3Modal. Then switch to another chain in the wallet, while still using the application.
With appkit, has that option been removed? When I switch network in rabby, a modal pops up blocking the whole application. This makes our app impossible to use since we have an integrated swap widget that needs to switch to other networks during the swap. While the application surrounding it only supports one network. I can't migrate to appkit for this reason.
I supplied a project on stackblitz but it can't be tested there since the application won't detect wallet switches. Need to be downloaded and run locally.
Another issue is after switching to a supported network, which Rabby handles automatically, the modal does not close. Minor UX issue. Seen at the end of the video.
Link to minimal reproducible example
https://stackblitz.com/edit/stackblitz-starters-36aam4?file=context%2Findex.tsx
Summary
With web3modal v5.1.9 it was possible to use
allowUnsupportedChain: true
in the createWeb3Modal. Then switch to another chain in the wallet, while still using the application.With appkit, has that option been removed? When I switch network in rabby, a modal pops up blocking the whole application. This makes our app impossible to use since we have an integrated swap widget that needs to switch to other networks during the swap. While the application surrounding it only supports one network. I can't migrate to appkit for this reason.
I supplied a project on stackblitz but it can't be tested there since the application won't detect wallet switches. Need to be downloaded and run locally.
yarn install
yarn dev
See this video:
rabby_switch.mp4
Looking at the old code I see it being referenced here (as in it won't display the modal if that param is set): https://github.com/reown-com/appkit/blob/V5/packages/core/src/controllers/NetworkController.ts#L121
But in the new code the whole NetworkController.ts has been removed and I can't find any reference to allowUnsupportedChain being used (when searching the whole repo). It seems the parameter is straight ignored here: https://github.com/reown-com/appkit/blob/main/packages/core/src/controllers/ChainController.ts#L222
Another issue is after switching to a supported network, which Rabby handles automatically, the modal does not close. Minor UX issue. Seen at the end of the video.
List of related npm package versions
"@reown/appkit": "^1.5.2",
"@reown/appkit-adapter-wagmi": "^1.5.2",
"@tanstack/react-query": "^5.61.4",
"next": "13.5.1",
"react": "18.2.0",
"viem": "^2.21.51",
"wagmi": "^2.13.0"
The text was updated successfully, but these errors were encountered: