I'm having an issue with KnockoutJs right now. I am a beginner, so for now I'm blaming my ignorance.
I have an observable array in a viewmodel. When any of the children are updated (which I verified through the console that they do in-fact change), I need the array to trigger a reflow/refresh of the view.
Here's why. My view creates an accordian based on the children, so grouping is involved. If a child changes it's group, it needs to move to a different place.
I did check out this SO How to force a view refresh without having it trigger automatically from an observable?
But observable.valueHasMutated()
doesn't do anything. No errors, just nothing happens.
If anyone has a working example that I can learn from, or solution, that would be awesome.
I would post my code (and I may later if I can make it simple enough), but it's unfortunately not as easy as it sounds given the design of the app.