Forum Discussion
Custom Visual becomes blank when switching to another page and back
- 1 year ago
After further testing, I didn't solve this issue but I noticed that it only happens with the developer visual. When the visual is compiled and imported the problem doesn't happen.
In other words, it seems to be a bug in the devtools rather than Power Bi in general, as it does not happen in compile visuals. So, even though I didn't find a solution, the problem doesn't affect production environments so it's not very important.
No offense Hammad, but I am perfectly able to ask Copilot myself ๐ Which obviously I did, that is why I know that your "solution" is just an exact copy-paste of what Copilot replies to this question, which is of no help to anyone.
Just so you know, that answer is completely wrong, in fact the "init()" method it mentions doesn't even exist on the IVisual interface ๐
Nothing against you, let me be clear, but if you sign yourself "Community Support Team" and you have that badge I think you should at least mention in your reply that you're posting a responde that comes from an AI bot and that you have (clearly) not tested yourself.
Hi tarockx,
You're correct that the init() method isn't part of the IVisual interface, and I apologize for including inaccurate information
If youโre still working through the issue with the constructor being triggered without update(), Iโd be glad to work with you on it. Feel free to share the relevant part of your visual code or any specific behavior you're observing, and weโll dig in.
If I misunderstand your needs or you still have problems on it, please feel free to let us know.
Best Regards,
Hammad.