π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
fix route render cancelled error
Abhinavba19e9b26e3a
diff --git a/apps/photos/src/pages/gallery/index.tsx b/apps/photos/src/pages/gallery/index.tsxindex 47a31a7413..e477367a58 100644--- a/apps/photos/src/pages/gallery/index.tsx+++ b/apps/photos/src/pages/gallery/index.tsx@@ -410,7 +410,7 @@ export default function Gallery() {}, [fixCreationTimeAttributes]);useEffect(() => {- if (typeof activeCollectionID === 'undefined') {+ if (typeof activeCollectionID === 'undefined' || !router.isReady) {return;}let collectionURL = '';@@ -429,14 +429,8 @@ export default function Gallery() {}}const href = `/gallery${collectionURL}`;- const delayRouteChange = () => {- setTimeout(() => {- router.push(href, undefined, { shallow: true });- }, 1000);- };-- delayRouteChange();- }, [activeCollectionID]);+ router.push(href, undefined, { shallow: true });+ }, [activeCollectionID, router.isReady]);useEffect(() => {const key = getKey(SESSION_KEYS.ENCRYPTION_KEY);