Add refs for caching loads
cgen-bfc3b04cd196489abd0efbead3082158
This commit is contained in:
parent
5aef5285eb
commit
ab9880bdea
1 changed files with 2 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue