localStorage.getItem('user');
console.log(user);
if (user) return true;
else return false
}
console.log('hello world');
console.log(auth());
let init_state = {
authenticated : auth(),
}
how may i get the result of auth() before initiating the object ?
@S_Kill you again .. 😍😂, i've been watching tutorials about redux since you told me to, and it's working the way i wanted, now i'm having this issue only .. 🤔
localStorage.get is not async
Обсуждают сегодня