HackYourFuture-CPH / class-25-ironside

0 stars 1 forks source link

Example: Cannot access the state with Zustand #16

Closed BrantalikP closed 10 months ago

BrantalikP commented 11 months ago

my branch: ttps://github.com/HackYourFuture-CPH/class-25-ironside/tree/test-branch

file: frontend/src/pages/login/Login.tsx

function LoginPage() {
  const [email, setEmail] = useState<string>('');
  const [password, setPassword] = useState<string>('');
  const [error, setError] = useState<string>('');
  const [loading, setLoading] = useState<boolean>(false);
  const { login, currentUser } = useContext(AuthContext);
  const user = useUserStore((state) => state.user);

  const navigate = useNavigate();
hamoudi-hamoudi commented 10 months ago

Is this now or 3 weeks ago ?

BrantalikP commented 10 months ago

3 weeks ago :D This was example how to write issues