Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hei, can't figure out, how to make the call syncronous.
Any idea ?
this.storage.get(this.updateCountName).then(count => { this.updateCount = +count; }) .catch(() => { this.updateCount = 0; this.storage.set(this.updateCountName, this.updateCount.toString()); }); ...
Thanks in advance
Solved! Go to Solution.
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
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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.