Hope you all are doing fine.
RTK queries return response in data attribute which can be accessed via hook generated by RTK
My Code:
const {data = [], isFetching} = useFetchConversationQuery(categoryId, {
skip
});
const { data } = useFetchCategoryQuery();
My issue is that I'm trying to call 2 RTK queries in a react component so there cant be two attribute with the same name is there a way to change the name of data attribute in RTK queries,