You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CLAUDE.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -77,6 +77,7 @@ MinusX is organized as a yarn workspace monorepo with 3 main packages:
77
77
-**Settings Access**: `web/src/app/appSettings.ts` exposes a curated subset of Redux settings to apps workspace via `RPCs.getAppSettings()`
78
78
79
79
### Development Best Practices
80
+
-**CRITICAL - Redux State Migrations**: ANY change to Redux reducer state structure MUST include a corresponding migration in `web/src/state/store.ts`. This is non-negotiable - missing migrations cause production crashes for existing users with persisted state. Always increment the version number and add migration logic to initialize new fields.
80
81
-**Concurrency Control**: Batch API calls to prevent resource exhaustion when fetching data for multiple entities
81
82
-**Settings Pattern**: New settings require updates in reducer, settings UI, and `appSettings.ts` for cross-workspace access
82
83
-**Code Reuse**: When implementing similar logic in multiple places, extract reusable functions to shared modules rather than duplicating code
0 commit comments