Javascript – state variables returns undefined
I need help with managing react states, I can't seem to wrap my head around it. I have a component that receives the id of a database entry from another page via useLocation, I then use that id with an…