svelte-web3
svelte-web3 copied to clipboard
Saved data in stores such as selectedAccount, connected, chainId removes on refresh?
I'm facing a problem in which when I am refreshing a page, the data is lost.
Yes, that's how store works. Data is not persistent when reloading. You will have to implement that yourself on your side. By example saving the account and connection type in localstorage and trying automatic connection when these infos are detected on reload. I'm open to have plugin implementing this but not in core package.
I will give it a try! Thanks