File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -328,9 +328,12 @@ def _python_to_pyscript(
328
328
new_config = extend_pyscript_config (config , extra_packages )
329
329
330
330
if not rendered :
331
- # FIXME: This is needed to properly kill off any previous PyScript instances
332
- # such as when a component is re-rendered due to WebSocket disconnection.
333
- # There may be a better way to do this, but it's not clear at the moment
331
+ # FIXME: This is needed to properly re-render PyScript instances such as
332
+ # when a component is re-rendered due to WebSocket disconnection.
333
+ # There may be a better way to do this in the future.
334
+ # While this solution allows re-creating PyScript components, it also
335
+ # results in a browser memory leak. It currently unclear how to properly
336
+ # clean up unused code (def user_workspace_UUID) from PyScript.
334
337
set_rendered (True )
335
338
return None
336
339
You can’t perform that action at this time.
0 commit comments