How to avoid calling hook conditionally here?
I have this
data coming from validateData that return the rawData if valid otherwise null. I then check if data exists and return early otherwise. After that I use useCustomHook that depends on that data but because I returned early I get a warning that hook is called conditionally. How can I avoid this issue?
1 Reply
Solution
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View