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
the presenter binding listener is invoked, and the presenter value is set to true
the application code is invoked, and the presenter value is set to false
the presenter binding listener is invoked, and the model value is set to false
the renderer reacts to the model value change and unchecks the checkbox in the dom. This is the bottom of the orignial call stack.
now the methods return in the stack to 3)
After the presenter binding is invoked, the renderer listener is invoked with the original true value, so the dom is updated to the checked value.
This causes that the checkbox remains checked, although the presenter logic updated the viewmodel to false. This is because the event loopback is at the top of the stack. #72 was solved by changing the way the renderer handles model changes: it doesn't instanlty update the html dom, but defers and udpater. The updater will rely on the model value, so it passes by any transient change. This ensures that the correct viewmodel value will be reflected in the html dom.
We'll need to revise other renderers to conform this scenario.
The text was updated successfully, but these errors were encountered:
Related to #72
This causes that the checkbox remains checked, although the presenter logic updated the viewmodel to false. This is because the event loopback is at the top of the stack.
#72 was solved by changing the way the renderer handles model changes: it doesn't instanlty update the html dom, but defers and udpater. The updater will rely on the model value, so it passes by any transient change. This ensures that the correct viewmodel value will be reflected in the html dom.
We'll need to revise other renderers to conform this scenario.
The text was updated successfully, but these errors were encountered: