9 Replies
my guess is that
selectedComic
is being initialised as undefined
, since comics?.[1]
will be undefined
while query
loads, and while value
is undefined
React thinks that the component should be uncontrolledahhh
then how to make the initial value defined?
🤔
does the same error happen if you remove the
onChange
handler?
it may give u another error tbf
maybe do useState(comics?.[1] ?? null)
, since null
is an actual value in the eyes of reactyeah it doesnt show any error

but when its first load its show like this

Hmm try setting a placeholder
"Select Comic" or something
LESGOOOWWWW

thank you bruvvv