Reducing app bundle size through async reducers
summary
Proposes lazy-loading Redux reducers per page by shipping a reducer manager that combines default reducers and an add/remove API, plus an addReducer middleware that dispatches page reducers on navigation and forces client-side attachment after SSR. Claims reduce app bundle from about 138 KB gzip to 42 KB gzip, raises code coverage by ~20 percentage points (≈40% → ≈60%), and lowers LCP by ~0.8s; includes handling for reducers-as-functions not serializable from server.
AI-written summary · about
