Skip to content

Undo is armed on /create load and jumps to a state the user never saw #537

Description

@mehdibha

On arrival with no ?preset=, www/src/routes/_app/create.tsx seeds the editor from localStorage via setDesignSystem(stored). usePresetHistory records that seed as an ordinary edit.

Failure: Undo is enabled the moment /create loads, and pressing it drops the user to factory defaults — a state they never edited from and never saw.

Fix direction: apply the storage seed without recording it, the same way time-travel navigations are excluded.

Found reviewing #511.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: builderThe /create builder experiencebugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions