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
{{ message }}
Repository navigation
Convert the part, partition and final partition to annotation maps #151
One family of the page store declares its observable fields, computeds and actions in a plain annotation map instead of decorators: the part, the partition and the final partition. A family converts as a unit because decorators and annotation maps cannot be mixed within one inheritance chain.
The replacement pattern, fixed by the spec (trimmed from the prototype):
Cut the worktree from the spec's feature branch spec/118-page-store-mobx-7 and open the pull request into it.
Acceptance criteria
No decorator remains on the part, the partition and the final partition.
Each of these classes that has observable members calls makeObservable with an explicit annotation map in its constructor. A class that needs the call and has no constructor gets one. A subclass with no observable members of its own gets no call.
makeAutoObservable is used nowhere.
An action stays an arrow field where it is passed unbound; where a subclass replaces an action, actions are prototype methods.
A subclass that replaces a parent's action or computed annotates it override.
The partition's reset stays an arrow field; it is passed unbound.
The parity test passes with its baseline unchanged.
No test triggers a MobX action warning.
Panels and behaviour are unchanged.
Jest, lint, the typecheck baseline check and the end-to-end suite pass.
Activity