Skip to content

fix(docs): rename demo localStorage key to dv-demo-state-v6 and clear…#1227

Merged
mathuo merged 1 commit intomasterfrom
fix/docs-build-typeoperator-and-anchor
May 2, 2026
Merged

fix(docs): rename demo localStorage key to dv-demo-state-v6 and clear…#1227
mathuo merged 1 commit intomasterfrom
fix/docs-build-typeoperator-and-anchor

Conversation

@mathuo
Copy link
Copy Markdown
Owner

@mathuo mathuo commented May 2, 2026

… on reset

Reset previously only removed the saved state when the rebuild threw, so a normal Reset left the old state in localStorage and the next reload restored it instead of the default layout. Always clear on Reset.

Bumping the key to dv-demo-state-v6 invalidates everyone's existing saved state in one go — useful since some users still have v5-format JSON pinned that doesn't round-trip through the v6 API.

Description

Type of change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation
  • Refactor / cleanup
  • Build / CI / tooling

Affected packages

  • dockview-core
  • dockview (vanilla JS)
  • dockview-react
  • dockview-vue
  • dockview-angular
  • docs

How to test

Checklist

  • yarn lint:fix passes
  • yarn format passes
  • npm run gen has been run and generated files are up to date
  • yarn test passes
  • I have added or updated tests where applicable
  • Breaking changes are documented

… on reset

Reset previously only removed the saved state when the rebuild threw,
so a normal Reset left the old state in localStorage and the next
reload restored it instead of the default layout. Always clear on
Reset.

Bumping the key to `dv-demo-state-v6` invalidates everyone's existing
saved state in one go — useful since some users still have v5-format
JSON pinned that doesn't round-trip through the v6 API.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@mathuo mathuo merged commit e4fdeb3 into master May 2, 2026
4 checks passed
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented May 2, 2026

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant