I am facing a problem: I have two components, a parent component and a child component (a modal) that receives props from the parent.
I have a function that updates the firestore database. Once the functions terminate the state so the array of object that was fetched in the parent is completely empty after the function terminates. Anyone know this bug?