Replies: 1 comment 1 reply
-
Hard to say without an MRE or traceback, but Are you perhaps re-using a widget, after it has been removed from the DOM? That is unlikely to work. There are likely better ways of implementing swapping widgets, if you have leaped from .040.0 to 0.85.0. Perhaps by adding all the widgets and setting there |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've recently upgraded one of my projects to the latest build and I'm running into issues switching between widgets. I have a central_widget that serves as a ScrollableContainer, and I switch out a Static with ID #main_widget as the application moves through different stages in our process. The following implementation worked normally on <0.40.0, but now throws DuplicateID errors on 0.85.2:
`async def unload_and_load_widget(self, widget: Static):
"""Using the application framework load a widget
I've tried awaiting sleep() to wait for the remove to finish, remove_children() instead of remove(), or waiting until central_widget.message_queue_size hits 0, but nothing seems to work.
Beta Was this translation helpful? Give feedback.
All reactions