Quantcast
Viewing latest article 5
Browse Latest Browse All 17860

Custom Visual becomes blank when switching to another page and back

Hellow everyone

I'm developing a custom visual and I have an annoying problem: if the user goes to another page in the report and then goes back to the page where the visual was, the visual is completely blank.

 

I've added some logs to the console to find out why this was happening, and here is the problem: when coming back to the page the Visual's constructor is invoked (which means the visual is being re-instantiated) but, unlike with a normal page refresh, the update() method is not called

 

Furthermore, the DOM seems to be broken: even if I manually redraw the Visual from the constructor (which is not a good solution anyway, because I don't yet have the setting since update() has not been called) 

 

What am I doing wrong here?


Viewing latest article 5
Browse Latest Browse All 17860

Trending Articles