Actions may not have an undefined 'type' property. Have you misspelled a constant? – Redux action creator
20K reputation · 04 Aug 2021, 16:06 UTC
The goal is to decide whether Redux should rely primarily on its runtime warning for missing action types or adopt compile‑time guarantees (e.g., TypeScript‑based action schemas) as the main safety mechanism.
Constraints include preserving backward compatibility with existing JavaScript codebases, avoiding extra runtime overhead or bundle size increase, and ensuring a smooth developer experience for teams with varying TypeScript adoption.
Should Redux core enforce action‑type validation at compile time via TypeScript?
What impact would adding a compile‑time check have on bundle size and backward compatibility?
What steps are needed for existing projects to adopt compile‑time guarantees without breaking current action creators?