Forum Discussion
Custom visual gets the update request even if it shouldn't?
- 7 years ago
Hi,
Unfortunately I am not familiar with all the pitfalls of Power BI, but I suppose that, because of a custom visual works in an isolated sandbox, it isn't aware about where and what exact selection was applied so, there will just be called update with some passed data.
To solve your issue, I suppose, you could use a private field to store a visual state and just check it when update is called to prevent abundant rendering.
Kind Regards,
Evgenii Elkin,
Software Engineer
Microsoft Power BI Custom Visuals
[email protected]
Hi,
Unfortunately I am not familiar with all the pitfalls of Power BI, but I suppose that, because of a custom visual works in an isolated sandbox, it isn't aware about where and what exact selection was applied so, there will just be called update with some passed data.
To solve your issue, I suppose, you could use a private field to store a visual state and just check it when update is called to prevent abundant rendering.
Kind Regards,
Evgenii Elkin,
Software Engineer
Microsoft Power BI Custom Visuals
[email protected]