top | item 27250014

(no title)

tanaypingalkar | 4 years 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?

discuss

order

gassiss|4 years ago

Because you could be nesting hooks, which would bring all sorts of weird behavior.