Forum Discussion
Memory leaks in custom visuals
There's a known issue with memory consumption. New API will resolve this issue (please expect a new release soon).
Important to note that custom visuals should not remove DOM for each update call since it produces memory leaks.
To void removing of DOM you should use D3-enter-update-exit flow or use another library that keeps DOM during modifications.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
Okey I see, and will the new API solve this problematic of DOM causing memory leaks ? Because I'm using a library called Leaflet, its difficult to keep the same DOMs. since its all about maps.
- v-viig8 years agoCommunity Champion
Yes, it will reduce memory consumption but you should also optimize your code in order not to remove DOM for each update call.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals