1 Reply Latest reply: Feb 5, 2018 4:04 AM by Erik Wetterberg RSS

    How to know if a repaint was triggered by new data?

    Elia Dal Santo



      I'm developing a Qlik Sense extension and I noticed that the engine calls the "paint()" function quite often: when the hypercube changes, when another property changes, when the user resizes the extension area, etc.


      Since my initial data load operation is quite slow (because I need to do some post-processing on the cube's data before it is displayed), I would like to know: is there a way to know WHY my paint() function was called? What I mean is: can I know if the paint() function was called because the hypercube changed (in which case I need to re-run my post processing routines) or simply because the extension was resized (in which case I don't need to touch the data)??