You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Patch Changes
277264ce070429b87178cd86432f12d881bd11bf#4774 Thanks @gesposito! - Fix private @observable accessor fields and private @computed getters sharing state when a class and its subclass both declare one with the same name, such as #value. They are separate members, but MobX kept both under the name "#value", so the parent's field read and wrote the subclass's value. Private members are now kept under a key of their own. As a result isObservableProp(obj, "#value"), getAtom(obj, "#value") and observe(obj, "#value", ...) no longer find a private member by its name, and change events of a private field carry a symbol as name.