So what have we got here? Well, I took a step back from version 1 and thought very carefully about it. Maybe it was a great example of where you shouldn’t use an observable object, or at least use it differently. And on that basis, I went back to the drawing board: I think I can do better.
The problem is that we need to update several variables in our struct before we try to redraw the pie. Using an observed object, it starts to update the view as soon as we set the new value for the first slice — no, we need to rethink this a little more.
Report Story