Forum Discussion
mikihiir
7 years agoHelper III
Sync Storage Get
Hei, can't figure out, how to make the call syncronous. Any idea ? this.storage.get(this.updateCountName).then(count =>
{
this.updateCount = +count;
})
...
- 7 years ago
What is this.storage? If it returns a Promise you won't be able to make it synchronous.
You can try using async/await that make code cleaner.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
v-viig
7 years agoCommunity Champion
What is this.storage? If it returns a Promise you won't be able to make it synchronous.
You can try using async/await that make code cleaner.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals