Тёмный

React 19 has a Problem 

Josh tried coding
Подписаться 157 тыс.
Просмотров 32 тыс.
50% 1

Опубликовано:

 

8 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 131   
@incarnateTheGreat
@incarnateTheGreat 2 месяца назад
This is why they have release candidates. People test it out and find issues like these. Hope it gets sorted.
@drewhjava
@drewhjava 2 месяца назад
Na, this is why you have words. You use those words to talk to people before making sweeping changes like this.
@incarnateTheGreat
@incarnateTheGreat 2 месяца назад
@@drewhjava wo...wor.....ds?
@philheathslegalteam
@philheathslegalteam 2 месяца назад
This is actually a good change. We are seeing a literal 1 second delay in skeletons showing due to expensive rendering passes down the tree. React better release their component to fix this though.
@idk_who_am_i2748
@idk_who_am_i2748 2 месяца назад
Im not a JS dev but im confused by the logic applied from react devs. WHY would you change the default behavior of a functionality if there are other options or rather it should be the developer that fixes the issue. If you have an expensive component why not make it also be self suspending that would eliminate the need to throw away the first render. Or if that is not possible than why not add an "attribute" to Suspense defining how it handles its children. for example default is "parallel" if you need to you set it to "sequential".
@wlockuz4467
@wlockuz4467 2 месяца назад
This feels like classic React. Create a problem then discuss solutions.
@marcuss.abildskov7175
@marcuss.abildskov7175 2 месяца назад
It'd classic React. Fix problems by causing more problems.
@lalit5408
@lalit5408 2 месяца назад
because it is not changing any default behavior. Suspense is going to be release in full with React 19 only. The behavior that these lib authors used was still beta. If you didn't notice only lib authors are complaining about this, because they went ahead and used React's internal/beta features.
@Ivcota
@Ivcota 2 месяца назад
Bro our community engineers just to engineer. Like we need to solve important problems, not make problems to be solved like a jimmy neutron episode
@jamshediqbal7936
@jamshediqbal7936 2 месяца назад
Fortunately, I haven't used suspense and don't have plans to use in future 🙂
@excalibur2417
@excalibur2417 2 месяца назад
You definitely should use it but certainly not in react 19 for now.
@null_spacex
@null_spacex 2 месяца назад
How do you do partial rendering/streaming?
@jonny555333
@jonny555333 2 месяца назад
Suspense is actually great, though. If you're currently not using suspense in situations you could benefit from, that means you're effectively waiting for everything to load before showing anything to the user which is worse than even the react 19 version of suspense.
@wlockuz4467
@wlockuz4467 2 месяца назад
So much for an "unopinionated" JavaScript "library". React is a damn circus.
@charliesta.abc123
@charliesta.abc123 2 месяца назад
Only react has these problems
@owenwexler7214
@owenwexler7214 2 месяца назад
So looks like I’m staying on React 18/NextJS 14 for the foreseeable future
@ThingEngineer
@ThingEngineer 2 месяца назад
React is THE problem.
@algobuddy
@algobuddy 2 месяца назад
Looks like React 19 is trying out the new "slow and steady wins the race" strategy-except it's losing😆
@nasko235679
@nasko235679 2 месяца назад
"Still recommend preloading but recognize it's not always practical" What do they mean by that? Sure you can preload initial data serverside but if the component is dynamic with dynamic data (like what most of react is used for) you need parallel fetching. I have no idea what they were thinking with this. Am I just missing something?
@IvanKleshnin
@IvanKleshnin 2 месяца назад
Dude, they literally call SPA approach a "legacy mindset of building FE apps". Going all-in for the Backend-centric rendering. Now we're expected to clean freaking browser cache from the server... The proclaimed benefit is "performance" but IMO it's more about control over ecosystem than anything else.
@andrewdrone
@andrewdrone 2 месяца назад
Lol. So they're saying Google Maps is built on a legacy mindset? That's rich...
@nasko235679
@nasko235679 2 месяца назад
@@IvanKleshnin I'd get it if this was ruby on rails or laravel + livewire where serverside rendering is integrated properly, but they expect us to do that in NextJS ? Yeah no, that's crazy. The whole point of react is client side responsiveness, if they take that away might as well use HTMX+backend of choice and call it a day.
@IvanKleshnin
@IvanKleshnin 2 месяца назад
@@andrewdrone yep, just today we've got another controversy. This time it's React-19 being 6x slower than React-18 on some SPA example. The release is suspended and they apologize like "We forgot that many people still use SPA and other legacy tech. But don't worry, we'll fix your problem". So, assumingly, it's a shame and a problem that some people use SPA and don't buy into new shiny NextJS approach @_@ I agree with all your points btw 🤝
@JackLdien
@JackLdien 2 месяца назад
Hey Josh. very basic question :D. What keyboard and mouse you are using? im currently looking for a "good" keyboard for programming and personally i dont like the 100% keyboards
@gufoscuro
@gufoscuro 2 месяца назад
"Pretty fast, in the tradition of react" - I wouldn't really remember React for its speed :)
@JollyCoding
@JollyCoding 2 месяца назад
Very curious to see what the solution to this is since they’ve walked back. Seems they liked this feature at Facebook and it helped them. Easiest way would seemingly be a prop for the method, parallel or waterfall on each Suspense. Default it to parallel.
@botondvasvari5758
@botondvasvari5758 2 месяца назад
its problem is that its a cyptic shit that shouldnt be used anywhere
@user-pc5eb7gv4q
@user-pc5eb7gv4q Месяц назад
has this issue been resolved?
@jonny555333
@jonny555333 2 месяца назад
Does this only apply to client components? Or also RSC with suspense?
@devagr
@devagr 2 месяца назад
only client components, RSCs still fetch in parallel
@Tyheir
@Tyheir 2 месяца назад
Just add a prop to enable sequential rendering. This is where partial pre rendering will come in handy.
@iabhishek12
@iabhishek12 2 месяца назад
what coding font you are using josh.... its looking so clean , thanks
@ThingEngineer
@ThingEngineer 2 месяца назад
Only react would release a ‘mandatory waterfall feature’…
@catbb
@catbb 2 месяца назад
“listening to our problem” 😹 i mean they created the problem
@juanmartinguillen4876
@juanmartinguillen4876 2 месяца назад
React is the new jQuery
@AlanDanielx
@AlanDanielx 2 месяца назад
Svelte 5 FTW
@AnandAnnavajhala
@AnandAnnavajhala 2 месяца назад
I somehow feel @josh needs to post every week 🤔 Good real world content out there!
@siyedyoussef3202
@siyedyoussef3202 2 месяца назад
svelte 5 in this time 👀
@gamingwolf3385
@gamingwolf3385 2 месяца назад
No nooooo , i try it before , its awesome but has less community packages / libraries and the support of typescript in svelte components is weird Thats it everything else is good
@MennoB-sk8tv
@MennoB-sk8tv 2 месяца назад
They have all you need nowadays even shadcn
@AlanDanielx
@AlanDanielx 2 месяца назад
@@gamingwolf3385you are way too outdated on svelte 😂 Svelte 5 supports TS everywhere with no problems
@tekoh
@tekoh 2 месяца назад
@@gamingwolf3385 You don't need a svelte specific library/package. If it works on standard sites it works on svelte.
@AdlerWeber
@AdlerWeber 2 месяца назад
@@gamingwolf3385 I believe Svelte 5 solved the inability to use TS outside . Generally, yes, Svelte has a smaller community, but I find shadcn-svelte works great, and TS/JS libraries work without a framework-specific wrapper. I far prefer it to React
@pplytas
@pplytas 2 месяца назад
Great vid! I noticed "disk cache" on the first example, doesn't that mean they are returned form the browser cache?
@sarcasticdna
@sarcasticdna 2 месяца назад
Now let's fix the compiler and then introduce some bugs in react 21
@ashatron656
@ashatron656 2 месяца назад
Great vid mate! Sure it's good they listened... But why did they make such a breaking change without feedback in the first place? JS land is embarrassing at times.
@zer00rdie
@zer00rdie 2 месяца назад
What i saw in the thumbnail was a corny looking smile.
@1weiho
@1weiho 2 месяца назад
const [solution, setSolution] = useVue()
@faridguzman91
@faridguzman91 2 месяца назад
vue or svelte is the way. we need to jquery react.
@dvh_bzr
@dvh_bzr 2 месяца назад
never.
@justafreak15able
@justafreak15able 2 месяца назад
Exactly Vue, Svelte or Solidjs are much much better.
@gcash49
@gcash49 2 месяца назад
none of those are big enough improvements to react objectively
@justafreak15able
@justafreak15able 2 месяца назад
@@gcash49 What qualifies to be objectively better? perfs? bundle size? reactivity? maintainability ? DX? cause react is behind in most of these aspects. But definitely react has a very huge community and a lot of loyalists.
@marcuss.abildskov7175
@marcuss.abildskov7175 2 месяца назад
Angular
@QueeeeenZ
@QueeeeenZ 2 месяца назад
That is why I prefer Nuxt (Vue)
@SamOween
@SamOween 2 месяца назад
One may argue that suspense was abused here and you might want to suspend the the components with the individual calls
@SamOween
@SamOween 2 месяца назад
Thinking about it, you might want to use Suspense in this way to ensure everything is loaded (i.e., no loading spinners)
@davidstranava4057
@davidstranava4057 2 месяца назад
React is a problem
@kdc-solutions
@kdc-solutions 2 месяца назад
🤣
@sachinbasnet8258
@sachinbasnet8258 2 месяца назад
😆✅
@ihateorangecat
@ihateorangecat 2 месяца назад
Js is problem. And I love it! ❤
@null_spacex
@null_spacex 2 месяца назад
Use something else
@Simple_OG
@Simple_OG 2 месяца назад
Javascript is a problem
@ChichaGad
@ChichaGad 2 месяца назад
Solid JS is the future
@nonoonoooyes
@nonoonoooyes Месяц назад
it is all about marketing
@Gaijin101
@Gaijin101 2 месяца назад
Glad we decided to move away from react. Tired of these insane changes. All these 'fixes' and its still significantly compared to Solid, Vue, Svelte.
@CallMeLivio
@CallMeLivio 2 месяца назад
I really don't want to criticize your video. However, I believe that those who find this a breaking change are not truly familiar with the framework and are just following trends. For instance, the definition of Suspense in the initial React 16 (now React Legacy) was: ```React.Suspense lets you specify the loading indicator in case some components in the tree below it are not yet ready to render. In the future, we plan to let Suspense handle more scenarios such as data fetching.``` If developers now have unoptimized code that wraps multiple different queries to multiple APIs, what do you expect? Just duplicate your React.Suspense for each component.
@CallMeLivio
@CallMeLivio 2 месяца назад
codesandbox.io/p/sandbox/react19-forked-fgxk7h
@CallMeLivio
@CallMeLivio 2 месяца назад
Here's a codesandbox: sandbox/react19-forked-fgxk7h
@HideBuz
@HideBuz 2 месяца назад
3s is fast? Bro, real programmers measure in micro or milli seconds.
@SW-fh7he
@SW-fh7he 2 месяца назад
No 😂
@andrewdrone
@andrewdrone 2 месяца назад
A slug is fast if you compare it to a sloth, fwiw
@electroheadfx
@electroheadfx 2 месяца назад
React (facebook) is like Adobe, need to switch away from
@zakidzz
@zakidzz 2 месяца назад
what extention browser you use????
@karthikeyajidagam8068
@karthikeyajidagam8068 2 месяца назад
Arc
@javierperezmarin6039
@javierperezmarin6039 2 месяца назад
I use suspense alot, i think it will slow most of the people that use it. I think it should be a prop in the Suspense component, somthin flike
@aymenbachiri-yh2hd
@aymenbachiri-yh2hd 2 месяца назад
Thank you so much
@ComedyForYooou
@ComedyForYooou Месяц назад
nice. from slow to slower.
@daphenomenalz4100
@daphenomenalz4100 2 месяца назад
NextJs should have been built on Go nd htmx or something 🗣️ instead of React nd Js
@abhinavjoshi224
@abhinavjoshi224 2 месяца назад
Gonna stick with React 18 till 2026...😂
@ahmedrowaihi9804
@ahmedrowaihi9804 2 месяца назад
0:19 feels gay
@PlayBASIC-Developer
@PlayBASIC-Developer 2 месяца назад
Doesn't impact me .. interesting though
@rikizy528
@rikizy528 Месяц назад
just move to angular
@weeb3277
@weeb3277 2 месяца назад
yo!
@gkkkk7507
@gkkkk7507 2 месяца назад
Hi Josh. Programmierst du uns eine Schach-Website?
@sangyoonpark2757
@sangyoonpark2757 2 месяца назад
Yay
@pontusdorsay4673
@pontusdorsay4673 2 месяца назад
It's 2024, stop using react..
@SW-fh7he
@SW-fh7he 2 месяца назад
Why? Doesn't make sense.
@cristianosoleti489
@cristianosoleti489 2 месяца назад
Ta-da that's why React is inferior
@das_daily_
@das_daily_ 2 месяца назад
React18+Next14
@thefilteredcoder
@thefilteredcoder 2 месяца назад
Everyone whining about react. Just use something else. Oh wait, there isn’t a single job in svelte or whatever other libraries you prefer.
@statuschannel8572
@statuschannel8572 2 месяца назад
lol agree, why complaining about a release candidate? the whole purpose of them releasing the candidate is to get feedbacks like this!
@thefilteredcoder
@thefilteredcoder 2 месяца назад
@@statuschannel8572 exactly. Honestly I think it’s great that we as a community have a voice and we can prevent stuff like this from coming out and they actually want to listen to us
@marcuss.abildskov7175
@marcuss.abildskov7175 2 месяца назад
Tell me you're a web developer without telling me you're a web developer. React is for people who don't know anything about software engineering
@edenassos
@edenassos 2 месяца назад
@@marcuss.abildskov7175 React is for people who aren't broke, like you.
@statuschannel8572
@statuschannel8572 2 месяца назад
@@marcuss.abildskov7175 lol only from react 19 there is a compiler and it's magic. so by your logic everyone who uses a library or framework don't know anything about software engineering. Tell me you're a blind hater without telling me you're a blind hater moment!
@snorefly
@snorefly 2 месяца назад
so irrelevant but i have a crush on u now
@muhriddinxusniddinov9015
@muhriddinxusniddinov9015 2 месяца назад
thank you bro, it's very amazing
@atharv_uploads
@atharv_uploads 2 месяца назад
Stop using react
@DryHub
@DryHub 2 месяца назад
Love from Bangladesh ❤️❤️
Далее
How React 19 Almost Broke The Web
55:40
Просмотров 117 тыс.
I Was Wrong About React Router.
19:06
Просмотров 60 тыс.
Fetching Data Doesn't Get Better Than This
6:58
Просмотров 114 тыс.
Why I’m Switching To Go in 2024
8:10
Просмотров 52 тыс.
I Found The Most Underrated Animation Library
6:25
Просмотров 39 тыс.
Every Framework Sucks Now
24:11
Просмотров 135 тыс.
The Actual Dumbest Thing About Try/Catch
11:47
Просмотров 46 тыс.
Only The Best Developers Understand How This Works
18:32
They made React great again?
4:11
Просмотров 1 млн
My opinion on Angular 18 & React 19
9:47
Просмотров 57 тыс.