is it possible and how to make a function, which can make a loop to all rooms from 3 to 9.


2 Replies
I'm trying to understand what you're going for here. There's a lot going on in the left image, and the one on the right is a hook to get a single room, which makes me unsure how the loop is related. Can you share a little more about what you're trying to do and what's not working as expected?
I would pass all rooms to fetch to the query and fetch them all at once. you can't loop over a hook (anything that starts with "use")