Default hook params for prerender safety
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
2a8e674b38
commit
557970e09d
1 changed files with 1 additions and 1 deletions
|
|
@ -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(() => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue