Dynamic Event Handler Registration and Cleanup #1747
-
I am developing a python shiny core application that dynamically renders components that each require their own module server functions. The problem arises when the components are unloaded from the screen, the UI updates, but the module server functions are still loaded and cause some reused IDs to have multiple event handler registered. The r-shiny implementation supports destroying observers, is there a python shiny equivalent to this? (Below is a snippet that produces the offending operation)
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
I resolved this by manually keeping track of dynamically allocated effects and invoking their destroy methods from the parent generator class. |
Beta Was this translation helpful? Give feedback.
I resolved this by manually keeping track of dynamically allocated effects and invoking their destroy methods from the parent generator class.