trustbloc / wallet

Wallet implementation based on agent-sdk
Apache License 2.0
24 stars 23 forks source link

Cache vault cards and credential cards for quicker loading time #1746

Open HeidiHan0000 opened 2 years ago

HeidiHan0000 commented 2 years ago

Vault cards and credential cards that have been loaded once should be cached so next time they are loaded, it does not take as long to load

birtony commented 2 years ago

It'd be a security risk to save those to the Vuex/local storage, but I suppose we could at least create a reactive property that'd be accessible to all components and save loaded vaults/credentials there. This way we won't have to load that data while user is still inside our app (uses built in navigation to browse various pages on our app, and not hard-refreshing the page or going to specific urls directly). However, we might want to have a way for the user to refresh this data - maybe we could seek advise from the design team on this matter.