From 0971362e06fa26ae9cdaf3972d114edce0d1f1f9 Mon Sep 17 00:00:00 2001 From: Manav Rathi Date: Sat, 19 Oct 2024 14:22:03 +0530 Subject: [PATCH] dev scaffold --- web/apps/photos/src/pages/gallery.tsx | 4 ++++ web/packages/new/photos/components/gallery/reducer.ts | 3 +++ 2 files changed, 7 insertions(+) diff --git a/web/apps/photos/src/pages/gallery.tsx b/web/apps/photos/src/pages/gallery.tsx index 8754f46d93..043e165ff7 100644 --- a/web/apps/photos/src/pages/gallery.tsx +++ b/web/apps/photos/src/pages/gallery.tsx @@ -353,6 +353,10 @@ export default function Gallery() { const collections = state.collections; const hiddenCollections = state.hiddenCollections; + if (process.env.NEXT_PUBLIC_ENTE_WIP_CL) { + console.log("render", { collections, hiddenCollections, files }); + } + const router = useRouter(); // Ensure that the keys in local storage are not malformed by verifying that diff --git a/web/packages/new/photos/components/gallery/reducer.ts b/web/packages/new/photos/components/gallery/reducer.ts index 7ceed78834..ac6d926c0d 100644 --- a/web/packages/new/photos/components/gallery/reducer.ts +++ b/web/packages/new/photos/components/gallery/reducer.ts @@ -123,6 +123,9 @@ const galleryReducer: React.Reducer = ( state, action, ) => { + if (process.env.NEXT_PUBLIC_ENTE_WIP_CL) { + console.log("dispatch", action); + } switch (action.type) { case "mount": { const [hiddenCollections, collections] = splitByPredicate(