We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 417b687 commit 6a50d56Copy full SHA for 6a50d56
src/idom/core/layout.py
@@ -113,7 +113,13 @@ async def dispatch(self, event: LayoutEvent) -> None:
113
114
async def render(self) -> LayoutUpdate:
115
while True:
116
- return self._create_layout_update(await self._rendering_queue.get())
+ component = await self._rendering_queue.get()
117
+ if id(component) in self._model_state_by_component_id:
118
+ return self._create_layout_update(component)
119
+ else:
120
+ logger.info(
121
+ f"Did not render component - {component} already unmounted or does not belong to this layout"
122
+ )
123
124
if IDOM_DEBUG_MODE.get():
125
# If in debug mode inject a function that ensures all returned updates
0 commit comments