Data fetching in NextJs using SWR

Data fetching in NextJs using SWR

Hamed Bahram

2 года назад

3,037 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Hafeez Ullah
Hafeez Ullah - 26.09.2023 13:58

Hi, Can I use SWR for my dynamic menu in the header?

Ответить
Paschalyn Ukwuani
Paschalyn Ukwuani - 21.06.2023 20:59

Wow!! Can I take a moment to say that you are fabulous? This tutorial here deserves more views than it already has. Thanks for explaining SWR, the built-in functions and the static-generated, client-side generated and server-side generated pages. You just earned a new subscriber. Looking forward to seeing more tutorials from you.☺😋😇

Ответить
sina parsapour
sina parsapour - 18.06.2023 20:05

Thank you hamed for this valueable video.

Ответить
kentang goreng
kentang goreng - 20.04.2023 03:35

when using swr do you have to privide a fetcher for every service/api call ?
ex: fetch user provide a fetcher; fetch posts provide a fetcher...

Ответить
Antonio Ghodacholi
Antonio Ghodacholi - 26.03.2023 21:17

Thank you, Hamed!

Ответить
leviptz
leviptz - 26.10.2022 17:35

Hi Hamed, your content is insane good! Thank you so much. What Data Fetching should i use when i have a compleate section like .../content/... and everything behind content/... is just for authenticated users. At the moment i use SSR and fetching inside getServerSideProps... but on every Page change is has to load all the stuff from the server and checks on the server if a user is singed in. What fetching method should i use?
Thank you so much and keep going 😃

Ответить
Junior Java Developer
Junior Java Developer - 30.08.2022 23:17

Good video. I have a question about pagination in NextJs. Let's say I have many pages with listings, for the exact city - /listings/city and I want that each page contains pagination and filtering. Pagination and filter params will be passed to query params - /listings/chicago?page=2&brand=pepsi As I understand the only way is to use getServerSideProps. Or is possible to mix with the client-side fetching?

Ответить
Bahadir Yalcin
Bahadir Yalcin - 11.07.2022 04:36

Can’t wait to see more video. Thank you👍👍👍

Ответить