Function inside useEffect fire twice even with empty dependency array

后端 未结 0 1697
礼貌的吻别
礼貌的吻别 2020-12-08 21:03

I have this example from https://github.com/vercel/next.js/blob/canary/examples/with-firebase-authentication/utils/auth/useUser.js

The effect works fine (fires once)

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