Default hook params for prerender safety

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Randall Stillwell 2026-06-03 17:03:57 -05:00
parent 2a8e674b38
commit 557970e09d

View file

@ -5,7 +5,7 @@ import { VOCAB, collectionDisplayName } from './collection-vocabulary.js';
/** /**
* Card/collection page state and handlers (god-component split). * Card/collection page state and handlers (god-component split).
*/ */
export function useCollectionsPage({ user, authLoading }) { export function useCollectionsPage({ user = null, authLoading = true } = {}) {
const router = useRouter(); const router = useRouter();
useEffect(() => { useEffect(() => {