Y
Hacker News
new
|
ask
|
show
|
jobs
by
tanaypingalkar
1854 days ago
True, you cannot do that in useEffect, it will throw you error. And probably your linter will tell you. You can't even use your own or third party hooks in side useEffect. This also throw error I don't know why?
1 comments
gassiss
1854 days ago
Because you could be nesting hooks, which would bring all sorts of weird behavior.
link