React context method inside a useEffect

前端 未结 0 1031
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-06 07:44

I have a context with the following method that dispatches an action:

const AuthContext = createContext();
...

const loadUser = () => {
  try {

    dispatch(         


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