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

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

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 6 ай бұрын
The things Vercel wont show you (Theo Browne), presented by Vercel
@TomNook.
@TomNook. 6 ай бұрын
Shame we didn't have Theo on stage
@t3dotgg
@t3dotgg 6 ай бұрын
I had the option but I wanted to do the stream from the venue instead 🙏
@parlor3115
@parlor3115 6 ай бұрын
Let's be thankful he didn't 🙏
@MrStupiuno
@MrStupiuno 6 ай бұрын
What would he do besides “give hot takes and clickbait content”? No thanks
@maciejziehlke4479
@maciejziehlke4479 6 ай бұрын
1:06 and that comment "this tells Remix to use the server environment" :)
@asimshamim113
@asimshamim113 6 ай бұрын
the commitment to click bait titles from this dude is almost impressive
@gnarusg8708
@gnarusg8708 6 ай бұрын
Generator seems very nice for streaming an llm response.
@guillemgarcia3630
@guillemgarcia3630 6 ай бұрын
As far as I know, you would get a really big suspense tree right? So it might not be performant
@gerardmarquinarubio9492
@gerardmarquinarubio9492 6 ай бұрын
​@@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 6 ай бұрын
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
@serhiimamedov
@serhiimamedov 6 ай бұрын
First one is not curced at all. It should be in the official docs
@StingSting844
@StingSting844 6 ай бұрын
Shouldnt the loadMore function have a "use server" directive in it to be compiled into an RPC?
@agbimpod
@agbimpod 6 ай бұрын
but can we unit test them
@arish_shah
@arish_shah 6 ай бұрын
The third pattern is genuinely so cursed lol.
@yomaru_1999
@yomaru_1999 6 ай бұрын
Ways to write unmanageable code. Thx Vercel.
@TheIpicon
@TheIpicon 6 ай бұрын
Theo 😍
@RaducuGabriel
@RaducuGabriel 6 ай бұрын
generators for queue messages
@elvispalace
@elvispalace 6 ай бұрын
wait
@OybekDaniyarov
@OybekDaniyarov 6 ай бұрын
globalThis feels like php $GLOBALS 😅
@croakgrogan
@croakgrogan 6 ай бұрын
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 6 ай бұрын
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 6 ай бұрын
The globalThis and script dangerouslyinnerhtml one is in production code at Theo's own commercial project as he stated in this video.@@zyrphath
Cat story: from hate to love! 😻 #cat #cute #kitten
00:40
Stocat
Рет қаралды 13 МЛН
Indian sharing by Secret Vlog #shorts
00:13
Secret Vlog
Рет қаралды 49 МЛН
CAN YOU HELP ME? (ROAD TO 100 MLN!) #shorts
00:26
PANDA BOI
Рет қаралды 36 МЛН
Miracle Doctor Saves Blind Girl ❤️
00:59
Alan Chikin Chow
Рет қаралды 35 МЛН
The Big Headless CMS Lie (James Mikrut)
18:14
Vercel
Рет қаралды 42 М.
10 common mistakes with the Next.js App Router
20:37
Vercel
Рет қаралды 174 М.
You might not need useEffect() ...
21:45
Academind
Рет қаралды 144 М.
Node.js runs on Turborepo now
8:08
Anthony Shew
Рет қаралды 3,1 М.
Trying to attack the Vercel Firewall
13:09
Vercel
Рет қаралды 11 М.
Vercel Gave Up On Edge
17:50
Theo - t3․gg
Рет қаралды 96 М.
React + Servers = Confusion
20:30
Theo - t3․gg
Рет қаралды 39 М.
MVVM vs. MVI - Understand the Difference Once and for All
18:40
Philipp Lackner
Рет қаралды 27 М.
Soft and hard spend limits for Vercel projects
10:59
Vercel
Рет қаралды 5 М.
Дени против умной колонки😁
0:40
Deni & Mani
Рет қаралды 8 МЛН
XL-Power Best For Audio Call 📞 Mobile 📱
0:42
Tech Official
Рет қаралды 772 М.
How Neuralink Works 🧠
0:28
Zack D. Films
Рет қаралды 32 МЛН
📱 SAMSUNG, ЧТО С ЛИЦОМ? 🤡
0:46
Яблочный Маньяк
Рет қаралды 1,7 МЛН
Цифровые песочные часы с AliExpress
0:45
Теперь это его телефон
0:21
Хорошие Новости
Рет қаралды 1,7 МЛН