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 Жыл бұрын
Sonny, Can you make a video about background vs on-demand revalidation?
@dalestewart Жыл бұрын
I definitely will be using the optimistic hook in my own personal projects
@electricindro2236 Жыл бұрын
Brilliant explanation! Please keep such tutorials coming. Lot of new things to learn from you. 💗
@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 Жыл бұрын
Big love sir for every video you trained me a lot ❤❤❤❤❤❤❤❤❤❤
@supercrunch3367 Жыл бұрын
What if you need the ID response from the backend? Or should the frontend generate the ID?
@eliuddyn Жыл бұрын
Sonny The Master 🔥🔥
@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 Жыл бұрын
Hey Sonny can we get a CRM Hubspot clone...?
@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 Жыл бұрын
The UI will rollback the change
@dream__moments Жыл бұрын
@@HorizonHuntxr thanks
@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 Жыл бұрын
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 Жыл бұрын
Nice one!
@alejandromartinezramirez3312 Жыл бұрын
Amazing, ey bro could we have an example how to create pdfs and download them?
@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.
@darshandhabale14311 ай бұрын
its basically what you are asking for
@LuisVazquez-ky7yb Жыл бұрын
what will happened if the endpoint is down?
@dataSMASH8 ай бұрын
Anyone know how to set the type in useOptimistic? Both values default to ANY
@mikhaelhermanus5301 Жыл бұрын
Is there any way to use it on react native ??
@surendrajat7290 Жыл бұрын
nice video
@rodzadra Жыл бұрын
What about MeteorJS?
@pouyajabbarisani Жыл бұрын
I'm trying to write test for useOptimistic using jest, but it says "TypeError: (0 , react_1.experimental_useOptimistic) is not a function" :(