Closed ericxin1982 closed 9 months ago
HI @xinjie-zhang
I understood $api.init(), since init() is defined inside script, and why need to write $api && $api.init() together, what is the purpose of using $api that way?
Thanks Eric Xin
When x-init is executing, the $api may not exist, $api && $api.init() will ensure $api has been created.
Got it.
HI @xinjie-zhang
I understood $api.init(), since init() is defined inside script, and why need to write $api && $api.init() together, what is the purpose of using $api that way?
Thanks Eric Xin