Closed subzero911 closed 3 months ago
That's weird, I set up a minimal reproducible example, and everything works OK:
I found a bug, and it's not MobX related. So, I saved a user into a final variable at the start of build() method, and it held a reference to the old user instance until the whole widget rebuilt
After I started getting the user directly in the Observer, it began working
Seems like it's not fixed for @observable members.
Store:
User and UserGroups class:
Then I set a new User instance (with new users in group):
Observer doesn't react:
I also tried to check this behaviour and set it manually:
user = user.copyWith(...) -- Observer doesn't react
While directly changing ObservableList is working: