Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

dev scaffold

Manav Rathi0971362e06fa
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<GalleryState, GalleryAction> = (
state,
action,
) => {
+ if (process.env.NEXT_PUBLIC_ENTE_WIP_CL) {
+ console.log("dispatch", action);
+ }
switch (action.type) {
case "mount": {
const [hiddenCollections, collections] = splitByPredicate(