I'm stuck retrieving all values from capacitor storage on Ionic 5, I'm retrieving all the time ZoneAwarePromise or Array Iterator, how to deal with it?
Thank you
//MAIN.ts
ngOnInit() {
let vaya = this.storage.keys()
.then(result => {
return result
});
vaya.then(data => {
for (let item of data) {
console.log(this.storage.getItem(item))
}
})
}
//SERVICE STORAGE.ts
async keys() {
const { keys } = await Storage.keys();
console.log('Got keys: ', keys);
return keys
}