How do I make a query in useEffect() to avoid InvalidHookError?

后端 未结 0 1238
鱼传尺愫
鱼传尺愫 2021-02-01 18:04

I\'m trying to query an api to get user permissions AFTER logging the user in. But InvalidHookError occurs if I write the useQuery() inside useE

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