Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
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