diff --git a/apps/frontend/src/renderer/stores/github/investigation-store.ts b/apps/frontend/src/renderer/stores/github/investigation-store.ts index 0a0a0158..c7fcd969 100644 --- a/apps/frontend/src/renderer/stores/github/investigation-store.ts +++ b/apps/frontend/src/renderer/stores/github/investigation-store.ts @@ -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((set, get) => ({ // Initial state investigations: {},