fsprojects / Avalonia.FuncUI

Develop cross-plattform GUI Applications using F# and Avalonia!
https://funcui.avaloniaui.net/
MIT License
889 stars 72 forks source link

TextBox onTextChange issues with Elmish #395

Closed sixilli closed 4 months ago

sixilli commented 5 months ago

Description

I've described the issue here https://github.com/fsprojects/Avalonia.FuncUI/discussions/389 However, I'm facing a new issue. For some reason updating a requests that has another request with the same URL, both URLs get updated when the 2nd request is selected. I'm not really sure what's causing this to happen.

image

Repro code

https://github.com/sixilli/funcman/tree/main/src/App

Expected and actual results

I expect that only 1 request should get updated and switching between requests should not cause unnecessary updates.

Related information

JaggerJo commented 5 months ago

@sixilli are you still having this issue?

If so please provide a tiny sample so I can reproduce it.

Btw. I've looked at the app you linked. I'd strongly recommend using immutable state values instead of mutating an array in place.