you the best teacher i ever met , for real no matter how much i say thank you , you deserve more , always explaning in the best way , i wish someday see you holding the best teacher in the world reward
@josevsebastian290924 күн бұрын
One thing you are missing. Using Suspense for data fetching was an experimental feature from React. The true fault is with TanStack as they pushed an implementation of an experimental feature as production ready. SWR marked it as experimental; TanStack should have too. The React team is taking responsibility for something they didn't do.
@collinoly24 күн бұрын
A lot of projects relied in the experimental suspense component. Not just tanstack query. React was released suspense 6 years ago. It also feels like the old way suspense worked that did work in parallel just makes more sense
@josevsebastian290924 күн бұрын
@@collinoly Suspense is old but intended for lazy loading, initially. Data fetching was recently added as experimental with the use hook. Lazy loading still works fine. For data fetching, use hook is only intended to throw promises (created further up the render tree than the nearest suspense boundary): here is the mistake by TanStack query as it works by throwing promise from where it's created. That's not how data fetching using Suspense was designed to work. Technically, TanStack query violated rules of react that was yet to be written.
@jonikyronlahti23 күн бұрын
But how else TanStack could have worked? Only way to not throw the promise where was created is to do some Apollo level magic, which seems WAY too complicated for simple non-server rendered SPA. Of course you can lift the data fetching up the tree and that is what should be done most of the time. But sometimes... you just don't want to... I think the React team REALLY wants us to use some framework to develop React with (to the point it being suspect), but that's just not something many of us need or are willing to do. JS backend ecosystem just isn't very good. I think we are seeing a point where Facebook's needs are not matching with the needs of most React apps. I understand that continuing the render after the first promise is thrown is not "optimal", but that just isn't a problem for majority of React apps. What I don't understand is why they couldn't make Suspense somehow configurable so that it can serve both.
@josevsebastian290922 күн бұрын
@@jonikyronlahti i don't think they did it just to optimize render. Throwing promises where it's created can create race conditions. Sure, you can memoize it to fix the issue, but it's just treating the symptom. Moving it up the tree is not that big of a deal, especially when you consider that how it used to work still doesn't work, you could have had multiple fetches in the same component that were independent but once the first promise is thrown, the execution stops for that component (before and after the change), react team just extended it a bit outwards. And remember, using Suspense for data fetch is a luxury, there's still the good old loading state. For how tan stack could have implemented it, I'd say return a promise instead of the data which you can await using the use hook down the tree, not that hard.
@saiphaneeshk.h.548225 күн бұрын
Hello max, on a side note will there be any update on the GO course with more content? And any news on Sveltekit?
@Biglu19324 күн бұрын
Welcome back Max ! When can we expect " Laravel 11 The complete guide 2025 " ? 😀 ( please sensei, do it for all of us 🥺)
@AbdelrahmanSaad-w3u11 күн бұрын
Hi Max, I'm subscribed to your React course. I wanted to know if you’ll be adding React 19 to the course soon?
@JamesMuriuki-d8q24 күн бұрын
Hey Max! I’m loving the Code & Curiosity podcast. If you’ve run out of topics again, I’m totally up for a brainstorming session😂. Just as long as I keep getting my regular episodes! Say hi to Manuel for me.
@dennismurimi-m8c25 күн бұрын
Hello Max, Which software do you use to draw your rectangles and arrows to highlight text.
@madeOfClay9925 күн бұрын
I remember Max said once that he uses plain Power Point docs, but don't quote me on that.
@life_in_gen15 күн бұрын
Just wondering why couldnt they make it an option to do parallel or waterfall instead? Or just doesnt work like that.
@ekchills694823 күн бұрын
glad to have you back!
@ransomecode24 күн бұрын
It's been 86yrs 😢 Still no signals
@rsajdok19 күн бұрын
As always good to watch you 🙂
@AmirHosseinSaberi-d3h23 күн бұрын
Thanks a lot dear mentor 🙏
@Gohealt16 күн бұрын
Who writes a book on React? Ever changing framework !
@Floubadour13 күн бұрын
Thankfully it was (alongside the NextJs in general) the tipping point where I decided to switch to Svelte and SvelteKit. And boy oh boy, that was a bliss! I found joy in coding once again! React is dead to me
@ts896024 күн бұрын
I will never use the suspense thing. The code is much easier to understand and more predictable with a ternary "if loading else render"
@TheItamarp24 күн бұрын
Yeah, Suspense feels too much like magic. Even the docs don't actually explain how it works, just saying that it does...
@ts896024 күн бұрын
@TheItamarp thanks. I thought i was the only one
@marcoss456325 күн бұрын
will online curse be updated too ?
@chopsueey25 күн бұрын
and thats why nextjs holds back partial prerendering?
@codigoq608425 күн бұрын
It's base is not Solid(JS) 😅
@davideti256925 күн бұрын
Link to book page is broken.
@exvimmer25 күн бұрын
I'm sick of React and Next.js and all other “frameworks”. I made my own website with Go, HTMX and vanilla JS. I don't want to learn the same thing over and over again.
@dawidziomalify25 күн бұрын
To avoid using big JS frameworks/librariers you used another big JS library
@bvedantcodes25 күн бұрын
@@dawidziomalify the difference is that you just sprinkle in some HTMX. It's not like React where you're often reinventing things.
@madeOfClay9925 күн бұрын
I understand your frustration, I really do, that is why I don't bother learning other ways of building the same thing, if you go with Go/HTMX/Js that is great. For me, my choice will be always Angular, why? Angular is the only one that deserved to be called a proper FRAMEWORK since it gives you EVERYTHING you need right from the start, everything! Sure, you can install other packages such as redux/ngrx along with material or primeNg, etc... but those are minimal (it depends on the project ofc). When it comes to upgrade your Angular apps, is walk in a park, routes, state management, guards, services, signals, components, directives, everything gets updated all in once! For me Angular is = stability in my opinion.
@reze_dev25 күн бұрын
Yeah man i feel you. Js frameworks are always changing. I feel overwhelming too.
@rand0mtv66024 күн бұрын
Why would you even build a personal website with React/Nextjs? You are frustrated because you were using the wrong tool for the job? If you did it as a learning experience, then fine. React and Next.js aren't for everything, but I would never build a web application without using some framework. Try building a SASS application with Go, HTMX and vanilla JS and report back how it went and how frustrating it has been.
@azaamabubacker25 күн бұрын
Please talk about react native new releases
@hahouari_dz25 күн бұрын
expo 52 will be interesting with the new 0.76 RN
@alvitahmid24 күн бұрын
Hi bro do you need a thumbnail designer ?
@VenkataSaiKiranTanguturi25 күн бұрын
Hello max sir, I'm from india, present generation is good at artificial intelligence and machine learning as compared to web development.Is still have future for web development course,what is your opinion.And I'm studying B-Tech final year Computer science and Engineering,can you please give me a suggestion to me to become a artificial engineer and machine learning Engineer (or) a web developer, please give reply to me sir,In future if I get a good job for your guidance I will meet you sir❤❤❤❤❤❤❤❤
@midophriya365718 күн бұрын
react v19 can't stable release. and react native never version 1... they being beggar on expo this is why switch to svelte and flutter. but I give a chance on react-v19.
@mynameisAdas25 күн бұрын
First
@nr734316 күн бұрын
I'm fed up with all this rubbish...they invent all kinds of nonsense
@nr734316 күн бұрын
In fact..who really use react in production?
@TalkSoft25 күн бұрын
Any Hacker make a video on React.js Elaetron.js React Native.js With 1 backend and Database