daxus icon indicating copy to clipboard operation
daxus copied to clipboard

mutate auto model would not cause rerender

Open jason89521 opened this issue 2 years ago • 0 comments

Currently the auto accessor only notifies the listener inside it instead of notifying the whole model. If developers mutate the model, it would not cause a rerender.

We have two way to fix it:

  1. notify the corresponding accessor when developers mutate the model
  2. remove the self listeners, the accessor directly notify the model's listeners

I prefer the first approach.

jason89521 avatar Jul 20 '23 04:07 jason89521