You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Consider a case where a button click causes that button to be re-rendered. In this scenario, after the first click the backend will begin work to render again and eventually will delete state for the original button element. If shortly after the first button click a user clicks again it is possible that the button in the view and the button model in the backend are not the same. The event produced by this last click will result in an error because the element that would normally have handled it has already been deleted.
It is possible for events from the client to refer to elements
on the backend that have already been deleted. This is because
the frontend has not been sent the newly computed DOM model by
the time the event is produced - thus the target of the event
is stale.
In this case we now choose to ignore the event because the element
has been deleted.
Consider a case where a button click causes that button to be re-rendered. In this scenario, after the first click the backend will begin work to render again and eventually will delete state for the original button element. If shortly after the first button click a user clicks again it is possible that the button in the view and the button model in the backend are not the same. The event produced by this last click will result in an error because the element that would normally have handled it has already been deleted.
In particular we get a key error here:
https://github.com/rmorshea/idom/blob/b21f8e8361ced41508fb80afab4d5efe69c423fe/src/py/idom/layout.py#L60
The text was updated successfully, but these errors were encountered: