Skip to content

Fix out-of-action writes in the alignment, partition and store base #143

Closed

Description

@jtklein-agents

Parent

#118

What to build

The page store will run under MobX's default action enforcement with no configure call, so every write to observable state outside an action is fixed first, on MobX 5, where it can be judged on its own. This ticket fixes the writes in the alignment's parsed-alignment loader (two option values written after an await), the partition's add-part method, and the store base's version initialisation.

Cut the worktree from the spec's feature branch spec/118-page-store-mobx-7 and open the pull request into it.

Acceptance criteria

  • Each of the three members either is an action or wraps the writes that follow an await in runInAction.
  • Any other out-of-action write found in the alignment, partition or store base modules (through an alias, or into a nested object) is fixed the same way.
  • The parity baseline gains each member that becomes an action, in this change.
  • No configure call is added and no temporary enforcement setting is used.
  • MobX stays on 5 and the decorators stay.
  • The coverage tests pass unchanged.
  • Jest, lint, the typecheck baseline check and the end-to-end suite pass.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ready-for-agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions