docs(stores): add TODO for immer optimization
Co-Authored-By: Claude Opus 4.6 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
d1d70cef45
commit
ece37017ec
@@ -107,6 +107,9 @@ interface InvestigationStoreState {
|
||||
// Store Implementation
|
||||
// ============================================
|
||||
|
||||
// TODO: Optimize with immer middleware to avoid spreading entire state object
|
||||
// This requires updating all state setters to use draft pattern
|
||||
// See: https://github.com/pmndrs/zustand#immer-middleware
|
||||
export const useInvestigationStore = create<InvestigationStoreState>((set, get) => ({
|
||||
// Initial state
|
||||
investigations: {},
|
||||
|
||||
Reference in New Issue
Block a user