Skip to content

refactor(web): migrate debug-and-preview-panel-width to useSetLocalStorage#36977

Merged
lyzno1 merged 2 commits into
langgenius:mainfrom
shifang0511:refactor/migrate-debug-preview-storage
Jun 3, 2026
Merged

refactor(web): migrate debug-and-preview-panel-width to useSetLocalStorage#36977
lyzno1 merged 2 commits into
langgenius:mainfrom
shifang0511:refactor/migrate-debug-preview-storage

Conversation

@shifang0511
Copy link
Copy Markdown
Contributor

Summary

Migrate direct localStorage.setItem('debug-and-preview-panel-width') to useSetLocalStorage hook pattern.

Part of #36898

Changes

  • workflow/panel/debug-and-preview/index.tsx: replace localStorage.setItem with useSetLocalStorage<string>(..., { raw: true })

Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com

…orage

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@dosubot dosubot Bot added size:XS This PR changes 0-9 lines, ignoring generated files. javascript refactor labels Jun 3, 2026
@github-actions github-actions Bot added the web This relates to changes on the web. label Jun 3, 2026
@dosubot dosubot Bot added the lgtm This PR has been approved by a maintainer label Jun 3, 2026
@lyzno1 lyzno1 added this pull request to the merge queue Jun 3, 2026
Merged via the queue into langgenius:main with commit 7507e9b Jun 3, 2026
32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm This PR has been approved by a maintainer refactor size:XS This PR changes 0-9 lines, ignoring generated files. web This relates to changes on the web.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants