React Query Tutorial with Typescript | Part 4 -- Paginated, Infinite Queries

preview_player
Показать описание
In this video, I will be talking about how to use paginated and infinite queries, both very popular frontend display fetching strategies.

Timestamps
0:00 Intro
1:09 paginated queries
12:20 infinite queries
Рекомендации по теме
Комментарии
Автор

I'm having a problem with pagination. When I navigate to another page, I wanna set "page" back to "1" but nothing happen, my data is not update

igdev
Автор

A little off topic, but why create a new file for every Interface - that seems excessive.. why not just have one file, ala "Pagination.types.ts" or "Schemas.types.ts" etc.... ?

venicebeachsurfer
Автор

Loving this series so far! Do you think a combination of react query and react context eliminates the need for more powerful state management tools like redux? I usually default to redux for projects but was thinking of giving react query + context a try.

MrZiyak
Автор

Hey Leo im having problems with the optional chaining part. When i start the app i get this error

TypeError: Cannot read property 'map' of undefined
{data?.pages.map((page) => ....
^
I used your tsconfig but im still having this error

Kuzkonic
join shbcf.ru