Bug: First load/sync on new account after saving data
From discord, originally reported from dev branch of dapp
kenzo: now that were able to switch between different wallets fairly easily and quickly, the issue of profile data not fetching on first load with that account is more noticeable
michael: Basically we’re having trouble syncing new data when a box is openend for the first time after creating a new profile with some data. This is more urgent and pressing now that we’re supporting multiple providers. There will be many more first time instances. To reproduce, try to use the develop URL and create a new account with one of the providers like Portis and add data to your profile. Then refresh the page and log back in with portis and you will see that data doesn’t sync in first load, but if you refresh again it does
cc @oznekenzo @michaelsena
Have not been able to recreate in dev dapp or else where (used in chrome). Tried with both portis and metmask. Created new accounts for both, added my name, made multiple status updates and reload page. All data was returned. Switched between accounts without issue.
I can replicate this by doing
- Set some data with portis
- Clear site data
- Reload page
Same thing seems to happen every time I clear site data.
Seems like a bug in the dapp to me. I can replicate the same thing as above with MetaMask.
-
Set some data in example dapp
-
Clear cache in example dapp and reload
-
Login in example dapp and data loads as expected
-
In 3boxDapp login with the same MM address
-
Data doesn't load of first login
-
Reload and data appears
-
Clear cache and reload
-
Data doesn't load
-
Reload, data appears
cc @oznekenzo
yeah I have seen when clearing cache though, but less frequent user path
To add to this: Data loads with each provider on every account switch once that provider has had its data loaded once. Data doesn't load when working from a blank dapp cache