Relative Content

Tag Archive for react-query

React Query cant render data using map() function

I fetched data from server in my demo app with React Query useQuery() hook. I have data(type of array which hold elements with type=”game” or type=”individualTraining”) present inside component but I can’t use map() function to render it conditionally on the screen. Do you see what is problem?