cover TODOs + cross-tab cache

This commit is contained in:
Igor Loskutov
2025-09-03 07:57:11 -04:00
parent 048ebbd654
commit cff662709d
7 changed files with 138 additions and 59 deletions

View File

@@ -1,16 +1,16 @@
"use client";
import { Flex, Spinner } from "@chakra-ui/react";
import useAuthReady from "../lib/useAuthReady";
import { useAuth } from "../lib/AuthProvider";
export default function AuthWrapper({
children,
}: {
children: React.ReactNode;
}) {
const { isLoading } = useAuthReady();
const auth = useAuth();
if (isLoading) {
if (auth.status === "loading") {
return (
<Flex
flexDir="column"