I need to perform some actions when creating an FB instance (pass a reference to the created instance to another FB - something like Dependency Injection). I found FB_Init and {attribute 'call_after_init'}, but in both cases, the added code when creating the FB (declared in the visualization var and created, as I understand it, along with it) is not executed. Why?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I need to perform some actions when creating an FB instance (pass a reference to the created instance to another FB - something like Dependency Injection). I found FB_Init and {attribute 'call_after_init'}, but in both cases, the added code when creating the FB (declared in the visualization var and created, as I understand it, along with it) is not executed. Why?