react redux, firebas auth, on refresh useSelector show logged in page or re-direct away if no user

前端 未结 0 1258
长情又很酷
长情又很酷 2021-01-25 08:29

In the main app I have a useEffect hook which will check if user is logged in:

useEffect(() => {
    auth.onAuthStateChanged((user) => {
               


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题