From ece37017ece2f730fa2bf747b2d295a4756e7f58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sondre=20Engebr=C3=A5ten?= Date: Tue, 17 Feb 2026 14:33:04 +0100 Subject: [PATCH] docs(stores): add TODO for immer optimization Co-Authored-By: Claude Opus 4.6 --- .../frontend/src/renderer/stores/github/investigation-store.ts | 3 +++ 1 file changed, 3 insertions(+) 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: {},