Add refs for caching loads

cgen-bfc3b04cd196489abd0efbead3082158
This commit is contained in:
Builder.io 2025-10-05 01:43:25 +00:00
parent 5aef5285eb
commit ab9880bdea

View file

@ -61,6 +61,8 @@ const ProfilePassport = () => {
const [interests, setInterests] = useState<string[]>([]);
const [loading, setLoading] = useState(true);
const [notFound, setNotFound] = useState(false);
const lastLoadedKeyRef = useRef<string | null>(null);
const activationAttemptedRef = useRef(false);
useEffect(() => {
if (isSelfRoute && !user) {