prevent user avatar refresh

prevent referesing the user avatar on every page navigation
This commit is contained in:
Nuwan 2025-02-22 01:47:26 +05:30
parent 94747d9fe0
commit 9c0e643b23
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ const AppDataContext = React.createContext(null);
export const AppDataProvider = ({ children }) => {
const [appData, setAppData] = React.useState({});
const { currentUser } = useAuth();
const { userProfile, photoUrl } = useUserProfile({ user: currentUser, useCache: false });
const { userProfile, photoUrl } = useUserProfile({ user: currentUser, useCache: true });
React.useEffect(() => {
const fpPromise = FingerprintJS.load();