dev scaffold
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user