summaryrefslogtreecommitdiff
path: root/src/components/shared/Input.tsx
diff options
context:
space:
mode:
authorLarvan2 <[email protected]>2026-08-24 21:54:17 +0800
committerLarvan2 <[email protected]>2026-08-24 21:54:17 +0800
commit14973a35bff14d8ac7f828f612677918cb080879 (patch)
treeb41a41bdae6af17ffe776e755ad230c1a0d476d1 /src/components/shared/Input.tsx
parent9d39f048574afcd4625f0e3b144b5a4267ccea79 (diff)
refactor(store): re-enable immer autofreezeHEADmaster
setAutoFreeze(false) was there so logs could mutate their array in place, and stayed after that because deep-freezing s.proxies.proxies meant walking a few hundred objects on every dispatch. Neither slice is in the store any more; what is left is app, configs and modals, a few dozen fields. Every write already goes through produce and saveState only serializes, so the freeze changes nothing at runtime and turns an out-of-produce write into a TypeError at the point it happens instead of a silently shared object. Verified against a live backend, since typecheck cannot see this: the settings switches, collapse-all, theme, config fetch and the clashAPIConfigs push/splice all dispatch without throwing.
Diffstat (limited to 'src/components/shared/Input.tsx')
0 files changed, 0 insertions, 0 deletions