Skip to content
Snippets Groups Projects

Fixed bug where the project list always loaded over again on entering view...

Merged Tormod Mork Müller requested to merge Tormod into main
11 files
+ 48
34
Compare changes
  • Side-by-side
  • Inline
Files
11
@@ -50,11 +50,11 @@ export function UserAuthContextProvider({ children }) {
@@ -50,11 +50,11 @@ export function UserAuthContextProvider({ children }) {
}
}
/**
//todo kommenter
* Function will set the current user, logged into the system.
 
*/
useEffect(() => {
useEffect(() => {
const unsubscribe = onAuthStateChanged(auth, (currentuser) => {
const unsubscribe = onAuthStateChanged(auth, (currentuser) => {
console.log("Auth", currentuser);
setUser(currentuser);
setUser(currentuser);
});
});
return () => {
return () => {
Loading