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.

traderspost 80e70bb 6.6 KB Updated

File contents

traderspost/traderspost-command-dash/tree/main/skills/localstorage-vs-url-state commit 80e70bb907

Frequently asked questions

npx skillmds@latest add traderspost/localstorage-vs-url-state