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?
UU
Unknown User•446d ago
230KMembers
View on DiscordMore Posts
Endo – 07-14 Feb 8Does anyone know how to autoplay video with sound? I know there is a Autoplay policy. but for exampkairu – 14-23 Feb 7I have a section in my code I don't really understand.
`function nameOfFunction(a, b = null, c = ✅ – HalcyonXII – 12-44 Feb 4why this returns empty⛄Snowberb⛄ – 11-53 Feb 2What is it called the date that we use to calculate the time on JS? This description sucks but it wa