π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
fix route render cancelled error
Abhinav645ff285c813
diff --git a/apps/photos/src/pages/gallery/index.tsx b/apps/photos/src/pages/gallery/index.tsxindex 0ec12abe30..4b3c7d20a8 100644--- a/apps/photos/src/pages/gallery/index.tsx+++ b/apps/photos/src/pages/gallery/index.tsx@@ -412,7 +412,7 @@ export default function Gallery() {}, [fixCreationTimeAttributes]);useEffect(() => {- if (typeof activeCollectionID === 'undefined') {+ if (typeof activeCollectionID === 'undefined' || !router.isReady) {return;}let collectionURL = '';@@ -431,14 +431,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);