6

The value of a good walk...

So I was stuck with this problem. There's the data structure then there is the display of the data structure. Two copies of the data which is fine.

But the displayed copy is a pain to work with (WinForms) and there the was problem of having to handle events when the displayed data changed then update the back end actual working array and synchronize it so they're both up to date. Couldn't figure out a good solution. Actually slept on it. Still it didn't sit right to have two copies like that and sync it.

Went for a 20 min walk and BAM! Solution found. There was a way to just directly update the crappy WinForm and sort the data and keep the properties then when done displaying/selecting just convert to the working data format...so simple no synching required!

Comments
  • 1
    Reading posts like these I'm sooooo happy to be working with React and MobX.

    But I'm glad you found a solution ☺️
Add Comment