I am trying to add an object to an observable list:
cards.add(cardObject);
cardObject: {“paymentMethodId”:“8a10af44cea34ac1966c28be88b7d007”,“issuer”:“Visa”,“issuerId”:3,“maskedPan”:“492500******0004”,“description”:“My Visa”}
Getting the exception:
ERROR: Not handled: OnAdd
System.Exception occured.
at Fuse.Reactive.DataBinding1[System.Boolean].Fuse.Reactive.IObserver.OnAdd (System.Object addedValue) [0x00000] in <filename unknown>:0
at Fuse.Reactive.Dispatcher+ArgDispatch1[System.Object].Run () [0x00000] in <filename unknown>:0
at Fuse.Reactive.Dispatcher+UIThreadDispatcher.Run () [0x00000] in <filename unknown>:0
at Fuse.UpdateListener.Invoke () [0x00000] in <filename unknown>:0
at Fuse.UpdateManager.Update (Fuse.Stage stage) [0x00000] in <filename unknown>:0
UX:
<Each Items="{UserVM.Cards}">
<StackPanel>
<DockPanel Margin="10,10,10,10" Background="1,1,1,0.3">
<Image Width="40" Dock="Left" Margin="0,0,20,0" Source="{DataToResource issuer}" />
<StackPanel>
<Text Value="{maskedPan}" />
<Text Value="{description}" />
</StackPanel>
<Image ux:Name="deleteCardButton" File="../../../Assets/delete.png" Clicked="{UserVM_RemoveCard}" Dock="Right" Height="30" Width="30" />
</DockPanel>
<Rectangle Height="1" Dock="Bottom">
<SolidColor Color="#cac2b9" />
</Rectangle>
<RemovingAnimation>
<Move RelativeTo="Size" X="-1" Duration="0.4" Easing="CircularOut" />
</RemovingAnimation>
</StackPanel>
</Each>