Skip to main content
Announcements
New: No-code data prep in Qlik Cloud Analytics™ TAKE A TOUR
cancel
Showing results for 
Search instead for 
Did you mean: 
BradMazurek
Contributor II
Contributor II

Passing around an App object versus calling qlik.currApp() when needed

What is the best practice when using the App object associated with your extension? Should you only request it once, then pass it around or can you request it whenever you want?

I started by requesting qlik.currApp() once, then passing it around. Eventually, that felt cumbersome, so to streamline the marshalling and passing of data to callbacks I tried just calling qlik.currApp() when I needed my App object and suddenly nothing worked.

What would cause these App Objects to differ?

  • qlik.currApp() invoked in mounted()
  • qlik.currApp() invoked during a callback from Field().OnData.once()

(Edited to fix spelling mistake.)

0 Replies