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
A-content/bindingsThe DOM bindingsB-feature-trackingThis issue tracks a particular high-level featureE-very-complexVery difficult. Do not attempt without significant relevant experience and motivation.
An observable array type is a parameterized type whose values are references to a combination of a mutable list of objects of type T, as well as behavior to perform when author code modifies the contents of the list.
A-content/bindingsThe DOM bindingsB-feature-trackingThis issue tracks a particular high-level featureE-very-complexVery difficult. Do not attempt without significant relevant experience and motivation.
Activity
arihant2math commentedon Sep 3, 2025
Currently an issue on github.com.
arihant2math commentedon Sep 3, 2025
Seems like this would desugar to the following.
IDL:
Trait:
And the DOM interface could add callbacks to
ObservableArrayto implement operations that are triggered when an item is set or an item is deleted.jdm commentedon Sep 3, 2025
Relevant Gecko implementation:
jdm commentedon Sep 3, 2025
I think we should follow Gecko's lead here and make them special JS proxy objects.
[-]Implement ObserverableArray[/-][+]Implement ObservableArray[/+]script_bindings: Implement ObservableArray (servo#48506)