Hi folks,
is there a better way to prove, that a key<->value pair was stored successfully into the storage / could be fetched successfully from the storage?
Ionic Storage: https://ionicframework.com/docs/storage/
storage set
this.storage.set('key01', 'value01').then(() => {
// key01 with value01 was stored successfully into the local storage, continue with code execution
this.storage.set('key02', 'value02').then(() => {
// key02 with value02 was stored successfully into the local storage, continue with code execution, and so on ...
});
});
##storage get
this.storage.get('key01').then(() => {
// key01 has value01 continue with code execution
this.storage.set('key02', 'value02').then(() => {
// key02 has value02 continue with code execution, and so on ...
});
});
If I - say for example - save five key<->value pairs into the storage, so the chain would be really big and hard to read. That’s the point of the question.
Best,
Unkn0wn0x