The things Vercel won't show you (Theo Browne)

  Рет қаралды 19,884

Vercel

Vercel

7 ай бұрын

Presented at Next.js Conf 2023.
View all talks from the conference: • Next.js Conf 2023 - In...
Explore templates of sites built with Next.js: vercel.fyi/verceltemplates
Check out the Vercel product tour: vercel.fyi/producttour
Next.js is great. So is Vercel. We've spent the last few hours hearing all about how to use these things correctly. I'm going to show you how to use them incorrectly

Пікірлер: 26
@tabletuser123
@tabletuser123 7 ай бұрын
The things Vercel wont show you (Theo Browne), presented by Vercel
@maciejziehlke4479
@maciejziehlke4479 7 ай бұрын
1:06 and that comment "this tells Remix to use the server environment" :)
@TomNook.
@TomNook. 7 ай бұрын
Shame we didn't have Theo on stage
@t3dotgg
@t3dotgg 7 ай бұрын
I had the option but I wanted to do the stream from the venue instead 🙏
@parlor3115
@parlor3115 7 ай бұрын
Let's be thankful he didn't 🙏
@MrStupiuno
@MrStupiuno 7 ай бұрын
What would he do besides “give hot takes and clickbait content”? No thanks
@asimshamim113
@asimshamim113 7 ай бұрын
the commitment to click bait titles from this dude is almost impressive
@serhiimamedov
@serhiimamedov 7 ай бұрын
First one is not curced at all. It should be in the official docs
@gnarusg8708
@gnarusg8708 7 ай бұрын
Generator seems very nice for streaming an llm response.
@guillemgarcia3630
@guillemgarcia3630 7 ай бұрын
As far as I know, you would get a really big suspense tree right? So it might not be performant
@gerardmarquinarubio9492
@gerardmarquinarubio9492 7 ай бұрын
​@@guillemgarcia3630i don't think so right? The if condition returns the value in the generatorcomponent which is just a plain old JSX component, and then that is used to render a single suspense in the fallback. I don't think the inner generatorcomponent is ever truly rendered, I think it is used solely to trigger the next iteration of the generator. (Haven't tested though)
@tspander
@tspander 7 ай бұрын
The solution with recursive suspense is actually shown in the vercel/ai docs for rendering the LLM response in a server component. So it is at least somewhat official
@StingSting844
@StingSting844 7 ай бұрын
Shouldnt the loadMore function have a "use server" directive in it to be compiled into an RPC?
@arish_shah
@arish_shah 7 ай бұрын
The third pattern is genuinely so cursed lol.
@agbimpod
@agbimpod 7 ай бұрын
but can we unit test them
@yomaru_1999
@yomaru_1999 7 ай бұрын
Ways to write unmanageable code. Thx Vercel.
@TheIpicon
@TheIpicon 7 ай бұрын
Theo 😍
@RaducuGabriel
@RaducuGabriel 7 ай бұрын
generators for queue messages
@elvispalace
@elvispalace 7 ай бұрын
wait
@OybekDaniyarov
@OybekDaniyarov 7 ай бұрын
globalThis feels like php $GLOBALS 😅
@croakgrogan
@croakgrogan 7 ай бұрын
These all seem extremely problematic imo. Maybe I’m too much of a purist but I don’t think I’d feel comfortable stepping outside the walls of a framework for production apps. At some point, some of this stuff is going to break as part of a NextJS update and if you’re leveraging things like this heavily in your app, you’re suddenly going to have a lot of broken code to deal with.
@zyrphath
@zyrphath 7 ай бұрын
Well he did say repeatedly that these patterns are cursed and not blessed by Vercel ... did you for some reason expect production-stable code from that?
@case6339
@case6339 7 ай бұрын
The globalThis and script dangerouslyinnerhtml one is in production code at Theo's own commercial project as he stated in this video.@@zyrphath
Bro be careful where you drop the ball  #learnfromkhaby  #comedy
00:19
Khaby. Lame
Рет қаралды 44 МЛН
Cat story: from hate to love! 😻 #cat #cute #kitten
00:40
Stocat
Рет қаралды 14 МЛН
Miracle Doctor Saves Blind Girl ❤️
00:59
Alan Chikin Chow
Рет қаралды 47 МЛН
10 common mistakes with the Next.js App Router
20:37
Vercel
Рет қаралды 176 М.
Trying to attack the Vercel Firewall
13:09
Vercel
Рет қаралды 12 М.
Vercel Gave Up On Edge
17:50
Theo - t3․gg
Рет қаралды 96 М.
Node.js runs on Turborepo now
8:08
Anthony Shew
Рет қаралды 3,2 М.
React + Servers = Confusion
20:30
Theo - t3․gg
Рет қаралды 39 М.
Hands on with the Vercel AI SDK 3.1
13:04
Vercel
Рет қаралды 22 М.
Performance in React and Next.js (Lydia Hallie)
16:12
Vercel
Рет қаралды 27 М.
The Big Headless CMS Lie (James Mikrut)
18:14
Vercel
Рет қаралды 42 М.
What percentage of charge is on your phone now? #entertainment
0:14
С Какой Высоты Разобьётся NOKIA3310 ?!😳
0:43