Skip to main content

All Questions

3 votes
1 answer
2k views

RTK Query createApi() endpoints not showing up as hooks in Typescript

Trying a simple base query with RTK Query and after defining my api with createApi(), Typescript is giving me error when I try to destructure the api to get my hooks. I then copied pasted the pokemon ...
aaronfg's user avatar
  • 624
1 vote
2 answers
1k views

Screen not re rendering on fetching rtk query

I am new to RTK query. I was implementing pull to refresh in which I am trying to call the GET API again on pull to refresh. API result is getting logged successfully but it is not refreshing the ...
Bhaskar Joshi's user avatar
0 votes
1 answer
1k views

How to log and display partial data with RTK query?

I'm creating an mobile App with react native typescript and expo with help of rtk-query. I'm trying to get partial data from API https://pokeapi.co/api/v2/pokemon/snorlax/. For example from API I'm ...
Mikołaj Wittbrodt's user avatar