Learn the useOptimistic Hook in 19 minutes (Next.js 13 For Beginners)

  Рет қаралды 16,888

Sonny Sangha

Sonny Sangha

Күн бұрын

Пікірлер: 28
@jacob_dmn
@jacob_dmn Жыл бұрын
Thank you, Sangha, I knew you since I started web dev and I'm still watching you, it's weird that sometimes we have friends that we're not aware of, anyway, wanted to take a moment to be grateful for everything that impacted my life, including your content
@aymanechaaba
@aymanechaaba Жыл бұрын
Sonny, Can you make a video about background vs on-demand revalidation?
@dalestewart
@dalestewart Жыл бұрын
I definitely will be using the optimistic hook in my own personal projects
@electricindro2236
@electricindro2236 Жыл бұрын
Brilliant explanation! Please keep such tutorials coming. Lot of new things to learn from you. 💗
@victorlongon
@victorlongon Жыл бұрын
What create and api endpoint if you are already using server actions? The main idea with server actions is exactly to eliminate this middle lawyer when taking to the backend
@tauqeerhusain7521
@tauqeerhusain7521 Жыл бұрын
Big love sir for every video you trained me a lot ❤❤❤❤❤❤❤❤❤❤
@supercrunch3367
@supercrunch3367 Жыл бұрын
What if you need the ID response from the backend? Or should the frontend generate the ID?
@eliuddyn
@eliuddyn Жыл бұрын
Sonny The Master 🔥🔥
@diegounanue
@diegounanue Жыл бұрын
I’m starting with nextjs. Please help does it needs a state manager? When you import a client side component into a server side? The server side html is rendered in the server and the imported client component in the client?
@fatcat3513
@fatcat3513 Жыл бұрын
Hey Sonny can we get a CRM Hubspot clone...?
@dream__moments
@dream__moments Жыл бұрын
What if the server failed with 500 error for that reqst and the optimistic update took place. Then there will be anomalies between server and local state value ??? Please answer this I am facing during Favourite a item
@HorizonHuntxr
@HorizonHuntxr Жыл бұрын
The UI will rollback the change
@dream__moments
@dream__moments Жыл бұрын
@@HorizonHuntxr thanks
@Ashish-_-
@Ashish-_- 9 ай бұрын
One doubt: Am I correct that incase the API fails. the revalidateTag will take care of changing value to the previous value?
@lukeskywalker7029
@lukeskywalker7029 Жыл бұрын
So if I grasp server actions with optimistic updates correctly, there is no need for useSWR anymore? unless interacting with a returned stream, which is why Vercel still uses it in their AI SDK?
@ludanjubara
@ludanjubara Жыл бұрын
Nice one!
@alejandromartinezramirez3312
@alejandromartinezramirez3312 Жыл бұрын
Amazing, ey bro could we have an example how to create pdfs and download them?
@appstuff6565
@appstuff6565 Жыл бұрын
hey there Sonny, thanks for this. is there a optimistic setState ? I have a list of items with adding functionality and when i want to rearrange them, i am confused. Any advise or help or guidance is appreciated. :D Thanks.
@darshandhabale143
@darshandhabale143 11 ай бұрын
its basically what you are asking for
@LuisVazquez-ky7yb
@LuisVazquez-ky7yb Жыл бұрын
what will happened if the endpoint is down?
@dataSMASH
@dataSMASH 8 ай бұрын
Anyone know how to set the type in useOptimistic? Both values default to ANY
@mikhaelhermanus5301
@mikhaelhermanus5301 Жыл бұрын
Is there any way to use it on react native ??
@surendrajat7290
@surendrajat7290 Жыл бұрын
nice video
@rodzadra
@rodzadra Жыл бұрын
What about MeteorJS?
@pouyajabbarisani
@pouyajabbarisani Жыл бұрын
I'm trying to write test for useOptimistic using jest, but it says "TypeError: (0 , react_1.experimental_useOptimistic) is not a function" :(
@drivebuss8079
@drivebuss8079 Жыл бұрын
very narrow and small use case!!
@adarshrathi8265
@adarshrathi8265 Жыл бұрын
colourfull light degrade your personality
Learn Next.js 13.4 Server Actions in 24 minutes (For beginners)
24:45
React 19's useOptimistic: EVERYTHING you NEED to know
25:24
Jack Herrington
Рет қаралды 16 М.
This Game Is Wild...
00:19
MrBeast
Рет қаралды 130 МЛН
Happy birthday to you by Secret Vlog
00:12
Secret Vlog
Рет қаралды 6 МЛН
Long Nails 💅🏻 #shorts
00:50
Mr DegrEE
Рет қаралды 9 МЛН
Next 14 Reveals React's Taint, Solves RSC Safety Issues
15:22
Theo - t3․gg
Рет қаралды 56 М.
React Hooks Crash Course (useMemo, useCallback and more).
31:49
developedbyed
Рет қаралды 87 М.
Goodbye, useEffect - David Khourshid
29:59
BeJS
Рет қаралды 503 М.
Learn Next.js 13 With This One Project
29:42
Web Dev Simplified
Рет қаралды 388 М.
7 Years of Software Engineering Advice in 18 Minutes
18:32
The Most Legendary Programmers Of All Time
11:49
Aaron Jack
Рет қаралды 614 М.
Optimistic UI in NextJs 14
30:35
Hamed Bahram
Рет қаралды 57 М.
Next.js & Appwrite - Full Stack Course for Beginners
5:55:17
freeCodeCamp.org
Рет қаралды 228 М.
This Game Is Wild...
00:19
MrBeast
Рет қаралды 130 МЛН