dev scaffold

This commit is contained in:
Manav Rathi
2024-10-19 14:22:03 +05:30
parent cae16c1580
commit 0971362e06
2 changed files with 7 additions and 0 deletions

View File

@@ -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

View File

@@ -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(