Skip to content

[P1] production main 存在 onRehydrateStorage TDZ 死路約 4 個月:是否 cherry-pick hotfix 待裁決 #693

Description

@s123104

摘要

PR #692 審查證實:converterStore onRehydrateStorage 後置回呼 TDZ ReferenceError 被 persist middleware 靜默吞掉——自 2026-03-08 起存在於 production main(~4 個月)。影響:冷載時 persisted 遷移與損毀 sanitize 全滅、hasHydrated() 恆 false(RememberedHomeRoute 靠 fallback 掩蓋故未被察覺)。

決策點(需使用者授權——production release)

選項 A:cherry-pick TDZ 單點修復至 main 走 hotfix release(patch bump)
選項 B:隨 experiment→main Gate 一併帶入(若 Gate 時程近)

背景/證據

PR #692(experiment 已修);審查以 middleware 源碼+獨立重演雙重證實;main 實際使用者面影響因 fallback 掩蓋而有限(無回報案例)。

驗收標準

  • 裁決記錄;若走 A:hotfix PR+changeset patch+正式站冷載驗證

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingseverity:p1High-priority work

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions