The ethers.js
documentation suggests here that dapps automatically refresh the page whenever the network changes (e.g., gorli -> mainnet). When building a safe app using safe-apps-react-sdk
and safe-apps-provider
, is this handled automatically by the safe context?
When I look at the official Gnosis Safe React Apps repo I don't see any code to refresh the page on a network change. I do, however, see a few custom hooks, (e.g. the one in siwe-delegate-manager) to update the web3 provider when the sdk
or safe
changes, which seem to contain network data.
Can I safely ignore this warning in the ethers.js
docs and follow a similar pattern to reactively change providers/signers/networks?