Slall question:
I have a 2 parent components nesting the same child component inside of them. I use props so the parents can tell the child what title to show.
this child component is a photo gallery. It makes a query to the database, download photos and show them up. classic.
I need the parents to tell the child where to get the photos from: Get the photos from All users, for the home page or get only the photos from a specific user for a user's page.
I'm wondering if I can pass this information through a prop. Is that possible? Can we use the info from a prop as a varialble inside of the setup() function? Is there a better way to do this?