I have a component that contains a select (drop down) with multiselect, and each time a new item is selected i want to fetch data related to the value using react query and append this data to my state model of all selected values. However, currently i can't see how this is done using react query, as my useQuery needs to be created with the id to fetch defined already.
In short - how can i keep fetching object defined by an key using react query on the same component.