dotvvm icon indicating copy to clipboard operation
dotvvm copied to clipboard

Fix ko.observable handling in Linq translations

Open exyi opened this issue 1 year ago • 0 comments

  • FirstOrDefault, LastOrDefault, ... should behave like indexers
    • return observable, if the array contains observables, which then needs to be unwrapped
    • this is a regression in 4.3
  • Where, Order, Take, ... return the same structure which the original array has
  • Select is weird as it unwraps all observables in the array, but not recursively. That's why patch adds the JsObjectObservableMap object, which can represent this mid-state (and many other combinations)
    • Indexing after Select was apparently always broken in DotVVM

exyi avatar Oct 16 '24 10:10 exyi