React custom hook does not return latest value

后端 未结 0 950
刺人心
刺人心 2021-01-28 11:01

I\'m trying to make a simple authentication in React using custom useAuth hook. This hook has login and logout function that get distributed using an auth context to different c

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