SWR React Tutorial - Complete Course for Beginners

SWR React Tutorial - Complete Course for Beginners

Code Genix

10 месяцев назад

15,517 Просмотров

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


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

@shendrong3695
@shendrong3695 - 04.01.2024 00:52

🎉, im a first?

Ответить
@prashlovessamosa
@prashlovessamosa - 04.01.2024 05:06

Thanks man.
I have a question what's coming next on your channel.

Ответить
@keshavgupta6549
@keshavgupta6549 - 04.01.2024 07:08

Thank you sir I asked for this in your last video 🙌🙏

Ответить
@speedster784
@speedster784 - 04.01.2024 21:35

isnt SWR baked into next js from since 13+ by default?

Ответить
@saudkhan1080
@saudkhan1080 - 04.01.2024 23:53

thankyou this was so much helpful and eazy to understand !
can you please make 1 video about multi-stepper form with input , select , datepicker and radiobuttons with react-hook form and zod or yup validations and percentage styles ..

Ответить
@lazy2492
@lazy2492 - 10.01.2024 05:25

Nice bro can u make long project use nextjs ,swr and something

Ответить
@leviathanxid
@leviathanxid - 27.01.2024 13:45

I have a question, I can already use React Query which I learned from your video, do I have to learn SWR

Ответить
@riteshgsh
@riteshgsh - 30.01.2024 08:14

Hey I learnt Tanstack Query from your video, but I cannot get it right with react-error-boundary and React suspense. It's a bit of work to always do if (isLoading) or if (isError). Having ErrorBoundary and Suspense make it a lot easier.
I have tried the example of tanstack query docs for the same but couldn't get it right.

Ответить
@josuedavidkennedymamani3576
@josuedavidkennedymamani3576 - 14.02.2024 02:13

I was too lost to use this library but this tutorial fit me like a glove, thank you very much

Ответить
@danilochagov8418
@danilochagov8418 - 22.02.2024 18:25

During mutating chapters of your video everything went well until I came across useSWRMutation() hook and at the end of that chapter I got the error: Each child in a list should have a unique "key" prop. Looks like my list cannot get the ID value in the map function. Nevertheless, for fake API (JSON) new IDs were added successfully.

Ответить
@Квантоваяопределенность
@Квантоваяопределенность - 09.03.2024 23:39

That's great.

Ответить
@harleyjoker6456
@harleyjoker6456 - 18.03.2024 06:17

You forget to talk about cache, but anyway, excelent video

Ответить
@hsuwai-v8v
@hsuwai-v8v - 18.03.2024 16:09

Thanks ❤🎉

Ответить
@msarlak1512
@msarlak1512 - 28.03.2024 21:56

ممنون

Ответить
@alikeshtkar5662
@alikeshtkar5662 - 02.04.2024 15:15

You're perfect🔥🔥

Ответить
@dmltdev
@dmltdev - 06.04.2024 14:03

Extremely great. Thanks a ton!

Ответить
@MohammedSohail-jk1xr
@MohammedSohail-jk1xr - 22.04.2024 19:54

When wrapping children in a Provider component, which is a client component, the SSR advantage is lost, right?

Ответить
@memduhcevik
@memduhcevik - 23.04.2024 02:29

Awesome bro <3 keep going ;)

Ответить
@agustinpaz847
@agustinpaz847 - 25.04.2024 22:06

The perfect video, thanks too much

Ответить
@leciel87
@leciel87 - 28.04.2024 11:38

last infinite scrolling code is invaild
maybe.....
incorret code is this code?

export function useTodos() {
const getKey = (pageIndex: number, previousPageData: Todo[]) => {
if (previousPageData && !previousPageData.length) return null;
return `/todos?_limit=3&_page=${pageIndex + 1}`;
};

return useSWRInfinite<Todo[]>(getKey);
}

Ответить
@ВладКеся
@ВладКеся - 29.04.2024 20:39

You make some amazing videos. When are the new ones coming out?

Ответить
@devT44
@devT44 - 30.04.2024 08:08

Sir, do u have any discord channel?

Ответить
@nikolajelic892
@nikolajelic892 - 05.05.2024 15:30

Tell me if I'm wrong. If you use "use client" in parent component doesn't it make all of the children use client component and not server component, so that means everything is happening on client side. Ps. great video.

Ответить
@allensmith8503
@allensmith8503 - 16.05.2024 06:35

Thank u soo much for this!

Ответить
- 19.05.2024 19:30

I can't thank you enough. Thank you for this great tutorial on swr
🥰🥰

Ответить
- 22.05.2024 17:34

So i wrote this export function usePosts(pageIndex) {
return useSWR(`/api/posts?_limit=1&_page=${pageIndex}`);
}, but it returns everything from the backend yet I gave it a limit. do I have to the limits on the backend?

Ответить
@jasontricolor2978
@jasontricolor2978 - 07.06.2024 11:00

You made it easier for understanding definitely. I just have one question, all the GET methods will be in the fetcher functions, and so we don't need a try...catch and nothing related when only getting results? And can we rely on swr for doing all this process for us?

Ответить
@SarveshOfficial-r7i
@SarveshOfficial-r7i - 14.06.2024 23:54

Which is best react query or swr ? I am currently working on my capstone project which needs a good fetching, pooling, kind of realtime updates. For state management i am using recoil. I am confused between choosing react query and swr.
Can you guide me please

Ответить
@tnnz9920
@tnnz9920 - 15.06.2024 10:45

what if the GET method has header authorization how to handle them?

Ответить
@aymenbachiri-yh2hd
@aymenbachiri-yh2hd - 17.06.2024 12:54

thank you

Ответить
@yasin_khadem
@yasin_khadem - 24.06.2024 10:29

well done

Ответить
@muratasarslan2359
@muratasarslan2359 - 28.07.2024 16:26

very succint & easy to follow. Thank you 😃

Ответить
@bahramiwd4812
@bahramiwd4812 - 06.08.2024 12:37

Hey Code Genix, are you Iranian? Btw, loved your tutorials...

Ответить
@mohammadzeyghami
@mohammadzeyghami - 22.10.2024 18:57

mashtio o portaradar

Ответить
@mmaarafat
@mmaarafat - 09.11.2024 17:52

Thank you so much. If possible, can you make a video about AWS that we should learn as web developer?

Ответить
@codegenix
@codegenix - 14.05.2024 11:16

Between SWR library, React Query or other server state management libraries, what is your choice and why?

Ответить