Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Destroy event never ever triggers,
I need this event to know when user removes the visual,
any solution or work around?
module powerbi.extensibility.visual {
"use strict";
export class Visual implements IVisual {
constructor(options: VisualConstructorOptions) {
}
public update(options: VisualUpdateOptions) {
}
public destroy(): void {
console.log('%c destroy ', 'background: #222; color: #bada55');
}
}
}
This issue is on backlog.
Could you please describe why you need to know when user removes a visual?
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
I'm saving state for each of my visuals, and I need to know when a user removes the visual to correctly update the state.
Currently I'm using a socket io disconnect event as a work around, but it is not good enough, because the socket disconnects when user refreshes the page for example.
Thanks for the clarification. PBI CV API team will work on this issue but there's no ETA.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |