Don't know how to access the headers after the request. Documentation examples without using x-total-count
const guitarApi = createApi({
reducerPath: 'GUITARS',
baseQuery: fetchBaseQuery({ baseUrl: API_URL }),
endpoints: (builder) => ({
getAllGuitars: builder.query<AllGuitarsResponse, number>({
query: (limit = 1) => `${APIRoute.Guitars}_limit${limit}`,
}),
}),
});
I get them into the component like this
const { data: guitarData } = useGetAllGuitarsQuery(searchingParams);
Where can I access the response headers?