React Query with Next.js App Router

  Рет қаралды 25,331

Supabase

Supabase

Күн бұрын

Пікірлер: 30
@Supabase
@Supabase 8 ай бұрын
Thanks for watching! For advanced server rendering please watch the second video: kzbin.info/www/bejne/d5-1pJt4gLp0psk
@nikhilpsathyanathan
@nikhilpsathyanathan 8 ай бұрын
Using T3 stack with supabase & drizzle, It's nice
@oamarkanji3153
@oamarkanji3153 8 ай бұрын
This and the next video is what I have been looking for
@Supabase
@Supabase 8 ай бұрын
Nice, we've just released the SSR video: kzbin.info/www/bejne/d5-1pJt4gLp0psk \o/ Hope it's useful for you :)
@filipesommer8253
@filipesommer8253 8 ай бұрын
Cool video, thanks! However I thought nextjs has builtin caching mechanisms itself. Why would you need tanstack query if you can specify what you want to cache/revalidate just with nextjs?
@vash6249
@vash6249 7 ай бұрын
This is a thing that I was wondering and I'd like to understand as well
@user-iu2mz2mq6n
@user-iu2mz2mq6n 7 ай бұрын
Isn't it because we can benefit from React Query's data prefetching, query state hydration/dehydration, compatibility with streaming SSR, etc.?
@CUBKITS
@CUBKITS 6 ай бұрын
I thought so as well, but tanstack query abstracts away a ton of the boilerplate required to make requests, manage loading state, errors, re-fetching, and stuff like that. I tried using next's built-in fetch API for my project, but it still just required a lot of overhead to track request state and stuff.
@kosidinna_
@kosidinna_ 5 ай бұрын
tanstack query is used on the client components.
@CUBKITS
@CUBKITS 5 ай бұрын
@@kosidinna_ It's used on client components, but you can also pre-fetch the data on server components with it, so that your query client pulls from pre-fetched server data. Pretty cool!
@deanelie7775
@deanelie7775 8 ай бұрын
Isn’t that making your entire project as a CSR instead of SSR at 4:45? If so, you will loose all of the benefit using Next.js
@timurbas5713
@timurbas5713 8 ай бұрын
I'm wondering the same thing
@Supabase
@Supabase 8 ай бұрын
I don't think so, see nextjs.org/docs/app/building-your-application/rendering/client-components#how-are-client-components-rendered
@Dhanushsaji
@Dhanushsaji 8 ай бұрын
No.. If we want to use the SSR page inside CSR this is the best way(the only way I guess) If you import an SSR page into a CSR page by default it will convert into CSR. But you can tackle this issue by just passing the SSR page as a child to the CSR page.
@CUBKITS
@CUBKITS 6 ай бұрын
A few things: 1. You can nest SSR components inside CSR components, it just leaves a slot for the SSR component. 2. "All the benefit of using Next.js" does not end at SSR. There is so much more to it, like a solid page router, server actions, and a ton of other built-in goodies. 3. ALSO, 'use client' doesn't actually remove the benefits of SSR. When a client is marked with 'user client', the static page is still generated on the server, as much as it can, but is then hydrated on the client.
@davidkhierl696
@davidkhierl696 7 ай бұрын
you can press F2 key to rename the function/variable name :D
@yaaaayeet745
@yaaaayeet745 Ай бұрын
damn, thanks : )
@user-vu9dl3vn7l
@user-vu9dl3vn7l 3 ай бұрын
It's a great video. Thanks a lot! ❤
@derekjwilliams
@derekjwilliams 5 ай бұрын
Thanks so much for this, I have it working for my project, though I have not fully grokked everything. i was wondering if it is possible to redirect from the countries/[id] page if the user is not authenticated, have not been able to get this to work, yet.
@dear_up
@dear_up 3 ай бұрын
you wrapped everything with client component and now whole webside is client side rendered pages, but i need some ssr pages
@derekjwilliams
@derekjwilliams 5 ай бұрын
Brilliant as always!
@PauloRodrigues-d9j
@PauloRodrigues-d9j 8 ай бұрын
Release that next vid!
@thorwebdev
@thorwebdev 8 ай бұрын
Just finishing it up now. Should be out tomorrow 👍
@Supabase
@Supabase 8 ай бұрын
SSR video out now: kzbin.info/www/bejne/d5-1pJt4gLp0psk \o/ Hope it's useful for you :)
@user-de8ev2bn2d
@user-de8ev2bn2d 8 ай бұрын
2X watch
@rooba_web3
@rooba_web3 7 ай бұрын
Just a small tip, or critique for the future. You cadence is very annoying most of the time. Try to be more engaging instead of speaking like you don't even know what's going on, even if I know you do. Awesome video tho, helped me a lot to setup the reactQuery in NextJS
@YourModdedControllers
@YourModdedControllers 2 ай бұрын
Shut up I like his cadence.
@kamrant8915
@kamrant8915 3 ай бұрын
Bad explanation!!!
@officiallydheeraj
@officiallydheeraj 3 ай бұрын
Supabase sucks
React Query Cache Helpers
8:25
Supabase
Рет қаралды 2,5 М.
Why I don't use React-Query and tRPC in Next.js
18:58
ByteGrad
Рет қаралды 88 М.
Новый уровень твоей сосиски
00:33
Кушать Хочу
Рет қаралды 2,9 МЛН
Blue Food VS Red Food Emoji Mukbang
00:33
MOOMOO STUDIO [무무 스튜디오]
Рет қаралды 36 МЛН
How React Query Won
34:52
Theo - t3․gg
Рет қаралды 76 М.
Implement Clean Architecture in Next.js
53:07
Lazar Nikolov
Рет қаралды 18 М.
10 common mistakes with the Next.js App Router
20:37
Vercel
Рет қаралды 211 М.
[2024] React Native Firebase Authentication Google Login
34:38
Andrew Heim - Dev
Рет қаралды 220
Why I Still Use React Query with Next 14
11:28
developedbyed
Рет қаралды 62 М.
This Data Fetching Combo is OP
7:19
Josh tried coding
Рет қаралды 55 М.
Fetching Data Doesn't Get Better Than This
6:58
Josh tried coding
Рет қаралды 115 М.
React Query Is (Still) Essential - My Favorite React Library
11:04
Theo - t3․gg
Рет қаралды 151 М.
Next 14 + React Query COMBO with Server Actions and RSC
9:49
developedbyed
Рет қаралды 104 М.
Новый уровень твоей сосиски
00:33
Кушать Хочу
Рет қаралды 2,9 МЛН