Skip to main content
在 Manus 中运行任何 Skill
一键导入

localstorage-vs-url-state

Use when deciding where new UI state should live — URL params or localStorage. Rule of thumb operator-preference state (favorites, picture-in-picture geometry, panel layout, theme) goes in localStorage; chart-content state (symbol, granularity, indicator config) goes in the URL so links are shareable. Includes the cross-component reactivity pattern (custom event + storage event) and the watchlist-navigation trap that motivated the rule.

星标3
分支3
更新时间2026年5月21日 19:15
SKILL.md
readonly