useState length always = 1 when search box is empty I have a small issue related to some basic search box logic which returns results from Firebase.