useState returning empty array on default state, using react + supabase
I need help to understand why when I console.log(menus)
on Menu.jsx it returns an array of values, but if I console.log(item)
it only returns an empty array, while the default value of the item is “menus”.