prevent user avatar refresh
prevent referesing the user avatar on every page navigation
This commit is contained in:
parent
94747d9fe0
commit
9c0e643b23
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue