How streaming impacts React and Next.js applications

  Рет қаралды 28,116

Vercel

Vercel

3 ай бұрын

Streaming is the key to fast and dynamic web applications. Learn more about how it can help you improve the user experience of your site.
◆ Blog: vercel.com/blog/how-streaming...
◆ PPR: • Next.js Explained: Par...
◆ Core Web Vitals: • How Core Web Vitals af...
◆ Demo: partialprerendering.com
#vercel

Пікірлер: 26
@4ndrs_dev
@4ndrs_dev 3 ай бұрын
just this morning i used suspense in some routes with loading skeletons, really love how easy it is to set up and how fluid it feels with next.js
@thomasbouillon9478
@thomasbouillon9478 3 ай бұрын
I recently faced a drawback with that. Having component streaming also means having JS executing when these are loaded to update the DOM. This caused me a bad web viral in performance for having JS running for too long. I went back to ISR to fix it.
Ай бұрын
how does partial prerendering play with SEO? are the dynamic parts seen by the search engine crawlers?
@kasper369
@kasper369 3 ай бұрын
I have a big CSS file how do I load CSS in stream way using shadcn
@redenvalerio601
@redenvalerio601 3 ай бұрын
The problem I encounter is that loading.tsx returns 200 even after I send a notFound response meaning it will be treated badly by search engine. There's a bug report already and I'm still waiting for it to be resolved.
@DS-ow2ge
@DS-ow2ge 3 ай бұрын
damn lee you're on a tear..... you work so hard
@DS-ow2ge
@DS-ow2ge 3 ай бұрын
can you make a video about the partial pre rendering experimental features? I don't understand what that is, how its different from the ISR on pages router
@matt_hart
@matt_hart 3 ай бұрын
they did make a video on PPR. he mentioned it at the end of this video and it's in the description. but to quickly answer you, ISR lets you generate a fully static page to serve to users from a cdn anytime the previously generated static page gets out of date (you specify when the page becomes out of date). SSR means you render the entire page on a server for every request. PPR is like in between the two. you basically say what on your page should be static and that will be generated and served from a CDN for fast initial response, and then you can put elements in that same page that should be SSRed on every request for dynamic content, and they'll stream in and get inserted into your static page as the rendering finishes
@shekareditzz
@shekareditzz 3 ай бұрын
​@@DS-ow2ge😊😊😊😊😊😊😊😊😊
@shekareditzz
@shekareditzz 3 ай бұрын
​@@DS-ow2ge😊😊😊
@shekareditzz
@shekareditzz 3 ай бұрын
​@@DS-ow2ge😊😊
@martinumueller1
@martinumueller1 3 ай бұрын
I would like to see an example of authentication with Azure AD. Using msal.js directly or through next-auth. I am struggling with this and I think quite a few others are too.
@A03L
@A03L 3 ай бұрын
Code with antonio has a free masterclass of 8 hours about next auth v5 Check it out (it's not and ad, I really like the course )
@franknguyen8396
@franknguyen8396 3 ай бұрын
Lee does it again
@swimmyJones
@swimmyJones 3 ай бұрын
I just posted about this on the discord but the Suspense and loading.tsx file stuff seems to work great on desktop but not at all on mobile and tablet devices. Idk if anybody else is experiencing that or if there’s something different I have to do for those devices, but hopefully it’s just a dumb mistake I’m making lol
@leerob
@leerob 3 ай бұрын
Should work the same! If you can pin down an issue, want to open it on the Next.js repo?
@swimmyJones
@swimmyJones 3 ай бұрын
@@leerob I did a post in the Next.js discord but the only response I’ve gotten was from someone not liking how I asked my question, so I’ll try posting in the repo as well.
@griffadev
@griffadev 3 ай бұрын
It's a shame the AI SDK streaming helpers are tied to AI would be nice primitives in next or a standalone library. Took a look at the code and it's widely complex though so maybe it's not worth it
@Nab_001
@Nab_001 3 ай бұрын
I love Vercel,
@NitinSharma00001
@NitinSharma00001 3 ай бұрын
Hey @leerob, I'm facing issues while setting environment variables for my client side(browser) application part as some of apis need to be called from client side only. The problem is during build time (Azure Devops pipeline), I don't know any environment variables, I just know those variables on app settings of server. I'm dockering my nextjs app so that I can stream my app for different environments (dev, stage, prod). I'm facing this issue for all NEXT_PUBLIC_ prefix variables as these got inlined (hardcoded) during build time. Can someone suggest any workaround or solution for this?
@francopoffo
@francopoffo 3 ай бұрын
i had a similar problem recently, my workaround was declaring the variable on my Dockerfile with: ARG NEXT_PUBLIC_VARIABLE, and then - docker build --build-arg NEXT_PUBLIC_VARIABLE=${VARIABLE THAT YOU NORMALLY SET ON GITHUB/GITLAB}
@no_handle_no_problem
@no_handle_no_problem 3 ай бұрын
Here i thought you've done something with SSE
@paramaggarwal
@paramaggarwal 3 ай бұрын
Gave it the 100th like
@aralroca
@aralroca 3 ай бұрын
The rerendering of actions are using streaming virtual DOM? how it works to apply the diffing algorithm with streaming?
Next.js App Router Caching: Explained!
25:22
Vercel
Рет қаралды 77 М.
WTF Do These Even Mean
13:44
Web Dev Simplified
Рет қаралды 72 М.
CAN YOU HELP ME? (ROAD TO 100 MLN!) #shorts
00:26
PANDA BOI
Рет қаралды 36 МЛН
1 класс vs 11 класс (неаккуратность)
01:00
How I prepare to meet the brothers Mbappé.. 🙈 @KylianMbappe
00:17
Celine Dept
Рет қаралды 51 МЛН
10 common mistakes with the Next.js App Router
20:37
Vercel
Рет қаралды 174 М.
Hands on with the Vercel AI SDK 3.1
13:04
Vercel
Рет қаралды 22 М.
The Story of Next.js
12:13
uidotdev
Рет қаралды 532 М.
Trying to attack the Vercel Firewall
13:09
Vercel
Рет қаралды 11 М.
Why I don't use React-Query and tRPC in Next.js
18:58
ByteGrad
Рет қаралды 68 М.
This UI component library is mind-blowing
8:23
Beyond Fireship
Рет қаралды 553 М.
The Big Headless CMS Lie (James Mikrut)
18:14
Vercel
Рет қаралды 42 М.
Finally Fix Your Issues With JS/React Memory Management 😤
20:13
Jack Herrington
Рет қаралды 79 М.
Next.js Explained: Partial Prerendering (What? Why? How?)
11:03
ПК с Авито за 3000р
0:58
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 1,4 МЛН
Выложил СВОЙ АЙФОН НА АВИТО #shorts
0:42
Дмитрий Левандовский
Рет қаралды 1 МЛН
Samsung or iPhone
0:19
rishton vines😇
Рет қаралды 8 МЛН
How charged your battery?
0:14
V.A. show / Магика
Рет қаралды 2,3 МЛН
🤔Почему Samsung ПОМОГАЕТ Apple?
0:48
Technodeus
Рет қаралды 451 М.
ПРОБЛЕМА МЕХАНИЧЕСКИХ КЛАВИАТУР!🤬
0:59
Корнеич
Рет қаралды 3,3 МЛН