5 Tips and Tricks To Make Your Life With Next js 14 Easier

  Рет қаралды 27,687

developedbyed

developedbyed

Күн бұрын

First 4 chapters live Fullstack Next.js 14 Course 2024 Edition 🎁
developedbyed.com/
Here are a couple of next.js tips that I wish I knew sooner when the app router initially came out, hopefully this helps a lil bit with wrapping your brain around server and client components.
Timestamps
00:00 Intro & Demo
00:30 Fullstack Next.js 14 Course
00:44 Next Image Data Blur Local vs Remote
06:25 Careful with NEXT_PUBLIC
07:06 Caching Prod vs Dev (revalidate, headers, force-dynamic)
09:27 Please don't do this
12:44 Client vs Server Component madness
X: / developedbyed
Github: github.com/developedbyed
#programming #react #nextjs

Пікірлер: 63
@tali6616
@tali6616 Ай бұрын
I like how you not only explain the needy-greedy, but also create this friendly atmosphere. I don't even feel like I'm studying, more like speaking to a good friend. I also really enjoy UI design solutions like in courses, simple, but tasteful
@tigana
@tigana 9 күн бұрын
I feel the same. He’s a great presenter. Very friendly vibe
@ChrisChristensen143
@ChrisChristensen143 Ай бұрын
The camera stare after "blue balls" 😂😂😂
@jack_mc8
@jack_mc8 Ай бұрын
I love your mood, it cheered me up since the start, thanks!
@Al7alafawy
@Al7alafawy Ай бұрын
THAT WAS AWESOME!!!! You LITERALLY solved all my troubles😅🥰🥰
@RaulReyesOnline
@RaulReyesOnline Ай бұрын
Great video! How did you enable "Intellisense" to see all the exports from a file when doing the import statement: import { _click-here-and-reveal_ } from "/path" ?
@aaronshunter
@aaronshunter Ай бұрын
0:40 did my hair just grow back? 🤣
@coltonaallen
@coltonaallen 20 күн бұрын
Top-notch planning there
@fakeitsoyoumakeit
@fakeitsoyoumakeit Ай бұрын
this is the only channel that doesn't make me bored 🤓
@marketmov7796
@marketmov7796 7 күн бұрын
It's safe to include public API endpoints with NEXT_PUBLIC if they are meant to be publicly accessible and don't require any form of authentication or sensitive data.
@tomspatula616
@tomspatula616 8 күн бұрын
Hi Ed, legend video as always!
@MrSpinozadp
@MrSpinozadp 27 күн бұрын
Wooww really cool tips! Thanks 🙏
@hamirmahal
@hamirmahal 9 күн бұрын
At 15:28, what's the extension that shows you the import size? Thank you for the tips in this video.
@naminami3180
@naminami3180 8 күн бұрын
import cost
@vignesh_m_1995
@vignesh_m_1995 6 күн бұрын
Suppose we have a table in a Next JS page and the table has a filter (client) component with interactivity. When we hit Apply, how do we pass the filter values from the client child to the server parent component. (The parent fetches the data and renders the table). I can see many suggestions to pass the data as params or queryParams using revalidate or nav methods of next. That works fine for a simple values like ID or search params. For example, if it is not just an ID but an object (advanced filter similar to the one in Amazon), should we just pass the entire object via the query params and make the URL bloated with so many values or are there any alternate way to communicate from client child (filter) to server parent component (where data is fetched) ??
@DevAdeniji
@DevAdeniji Ай бұрын
Really helpful Thanks!
@developedbyed
@developedbyed Ай бұрын
No worries!
@DK-sq7of
@DK-sq7of Ай бұрын
I’ve heard/read people suggesting not to use server actions for fetching data(GET), but instead use it to mutate the data. What’s your thought on this?
@developedbyed
@developedbyed Ай бұрын
I guess the only thing would be that it makes a Post request instead of a GET.. that’s pretty much it as far as I know… you could just do a fetch directly in the server component if not
@raj080288
@raj080288 Ай бұрын
Nice one dude! What are you using for auto suggestion code?
@developedbyed
@developedbyed Ай бұрын
I'm on and off on github copilot hahaha
@raj080288
@raj080288 Ай бұрын
@@developedbyed haha is that free?
@danielpiedraquintero
@danielpiedraquintero 23 күн бұрын
‘use hybrid’ will be amazing
@sellimenes
@sellimenes Ай бұрын
Thank you for the video! I just didn't understand the difference between fetching data in API routes or in server actions. I am always using server actions but is there any benefits using API routes to fetch outer data?
@developedbyed
@developedbyed Ай бұрын
Server actions will always create a POST, that’s one of the cons and also you can’t fetch server actions in parallel, I need to make another video about this tbh 😅
@sellimenes
@sellimenes Ай бұрын
@@developedbyed yes I would be so happy! Thank you. 🙏🏻 I also have big problems with revalidate and even in GitHub issues too many problems about that. Video could be great. When I use revalidateTag, caches in the exact page deletes and refetch. But if I change the page, still old data is shown everywhere. It's not the expected usa case I believe.
@sellimenes
@sellimenes Ай бұрын
​@@developedbyed Thank you so much. I will be waiting for the video. 😅 Also, I am having big problems with revalidateTag. Even in GitHub Issues tons of posts about it but not solution. When we use revalidateTag, it deletes the cached data and refetch it in the exact page only. When you change the page which has the same data (website name for example), there is still the old data. It mustn't work that way I believe. Video would be great about revalidate in general either. 🙏
@developedbyed
@developedbyed Ай бұрын
Shoutout the the guy that called me a hobo in the comments! Cut a fresh cut boyyy
@6uiti
@6uiti 28 күн бұрын
I looked for hobo comment but I can't find it and now I'm disappointed
@mDHARYL
@mDHARYL 26 күн бұрын
What does hobo mean?
@coltonaallen
@coltonaallen 20 күн бұрын
​@@mDHARYLa term for a homeless person
@ajiteshmishra0005
@ajiteshmishra0005 28 күн бұрын
What is the difference of using in header and body?
@wuffgang5333
@wuffgang5333 Ай бұрын
but do blurred image make any sense if the remote image must be loaded for blurring?
@ExileEditing
@ExileEditing Ай бұрын
Copy pasted from my other comment: I'm not sure exactly how this works but my take on this is that a package like plaiceholder will fetch the image on the server and doing so results in consistent image loading times because it doesn't rely on the users internet or device speed to load it. Then, when the user loads the page, it displays that blurData instantly due to the small size while the full res image loads in the background. So I believe maybe just maybe if your download speeds are fast, it would be better without blurring, but this helps to keep it fast and consistent across all devices and internet speeds for all users.
@wuffgang5333
@wuffgang5333 Ай бұрын
​@@ExileEditing Got it. thank you for explaining.
@bennysmith4557
@bennysmith4557 Ай бұрын
8:27 legend
@fsociety.dat101
@fsociety.dat101 21 күн бұрын
I used to watch this channel. I wish I stuck with coding. But once I got the job after self teaching nearly everyday, I just felt overwhelmed by it all. Now I still work a shitty retail job and at 34 years old, I'm bloody ancient.
@nvsWhocares
@nvsWhocares Ай бұрын
Good video. Your server actions example is unfortunate though. Sorry for calling it out: Server actions are for mutating data not for getting data. By making your getJoke a Server action you basically did create a route handler for it under the hood. So the exact thing you rightfully said to avoid one step before. In your example you could've just left out the "use server" in the top, to not make it a server action but a simpe reuseable async function.
@tauhid97k
@tauhid97k Ай бұрын
Server actions are much simpler to use. I do use server action for GET, POST whatever. If it works then why not? My whole E-commerce project is built on server action. I see no performance issue or anything.
@developedbyed
@developedbyed Ай бұрын
Whoops that was my bad! Absolutely! I do recommend directly fetching in server components. Should’ve made it a bit clearer that when you use a server action it also explicitly creates a POST instead of GET. Thanks I’ll talk about it in a future video 👍
@thetruekobby
@thetruekobby 19 күн бұрын
Please will Nextjs still cache the data without "use server" at the top? @nvsWhocares @developedbyed
@renjielin1065
@renjielin1065 27 күн бұрын
I like your font , what's this ?
@justmeddling
@justmeddling 9 күн бұрын
Thanks baby reindeer sent from iphon
@Agustin-jo8mv
@Agustin-jo8mv 22 күн бұрын
Hey your Javascript "Full Course Download" link is broken. 😢😢😢😢
@haktanalbayrak384
@haktanalbayrak384 19 күн бұрын
What is the name of the theme? I like it very much
@theDanielJLewis
@theDanielJLewis Ай бұрын
What's the point of blurring a remote image like that? Is that actually making the blur any faster than displaying the image would do?
@ExileEditing
@ExileEditing Ай бұрын
I'm not sure exactly how this works but my take on this is that a package like plaiceholder will fetch the image on the server and doing so results in consistent image loading times because it doesn't rely on the users internet or device speed to load it. Then, when the user loads the page, it displays that blurData instantly due to the small size while the full res image loads in the background. So I believe maybe just maybe if your download speeds are fast, it would be better without blurring, but this helps to keep it fast and consistent across all devices and internet speeds for all users.
@AnasKhan-fi7xk
@AnasKhan-fi7xk Ай бұрын
Best content
@user-lp4df2em7v
@user-lp4df2em7v Ай бұрын
using actions for data fetching is wrong and an antipattern. A server action is just a remote procedure call, meaning that you basically call an api endpoint. what you suggested makes you do exactly what you were trying to avoid :)
@AndreyBelfu
@AndreyBelfu Ай бұрын
cool Thumbnail
@ys1197
@ys1197 Ай бұрын
11:00 this
@anthonymifsud6141
@anthonymifsud6141 Ай бұрын
I like your cut g
@developedbyed
@developedbyed Ай бұрын
ayyy thanks
@khaldounal-nuaimi3594
@khaldounal-nuaimi3594 Ай бұрын
nice haircut!
@mohaimenkhalid3844
@mohaimenkhalid3844 18 күн бұрын
cool
@fsociety.dat101
@fsociety.dat101 21 күн бұрын
Make sure you are looking after your health man. Make sure you are eating enough.
@Wenlu_
@Wenlu_ 12 күн бұрын
waddup pewds
@codernerd7076
@codernerd7076 Ай бұрын
Any discounts for the course it's priced way too high for my buget
@ilirbajrami2902
@ilirbajrami2902 21 күн бұрын
So you knew that you are going to have a haircut beforehand? :D
@KnowledgeBoxMM
@KnowledgeBoxMM Ай бұрын
First comment 4 my legend ❤
@MuhammadFajar-os1fq
@MuhammadFajar-os1fq Ай бұрын
perhaps sir, i think the video will be better if you use the better mic🙏🙏
@BrendaKincaid
@BrendaKincaid Ай бұрын
@developedbyed If you were referring to me, I am a woman. But thank you for indeed cutting that hair.
10 common mistakes with the Next.js App Router
20:37
Vercel
Рет қаралды 176 М.
All 29 Next.js Mistakes Beginners Make
1:45:10
ByteGrad
Рет қаралды 52 М.
NO NO NO YES! (50 MLN SUBSCRIBERS CHALLENGE!) #shorts
00:26
PANDA BOI
Рет қаралды 102 МЛН
Como ela fez isso? 😲
00:12
Los Wagners
Рет қаралды 30 МЛН
格斗裁判暴力执法!#fighting #shorts
00:15
武林之巅
Рет қаралды 92 МЛН
КАРМАНЧИК 2 СЕЗОН 6 СЕРИЯ
21:57
Inter Production
Рет қаралды 459 М.
Next 14 + React Query COMBO with Server Actions and RSC
9:49
developedbyed
Рет қаралды 85 М.
HTMX + GO 15 Minute Quickstart (For Javascript Devs)
16:59
developedbyed
Рет қаралды 11 М.
Every React Concept Explained in 12 Minutes
11:53
Code Bootcamp
Рет қаралды 367 М.
Next.js 15 Is Here (Vercel Ship Breakdown)
19:34
Theo - t3․gg
Рет қаралды 89 М.
Fetching Data Doesn't Get Better Than This
6:58
Josh tried coding
Рет қаралды 60 М.
Next js 15 is Here… New Changes Again?!
8:13
JavaScript Mastery
Рет қаралды 91 М.
The Easiest Way to Build Websites
10:56
Sajid
Рет қаралды 278 М.
All useEffect Mistakes Every Junior React Developer Makes
22:23
Interview With A Sr JavaScript Dev | Prime Reacts
24:43
ThePrimeTime
Рет қаралды 158 М.
5 НЕЛЕГАЛЬНЫХ гаджетов, за которые вас посадят
0:59
Кибер Андерсон
Рет қаралды 981 М.
Xiaomi Note 13 Pro по безумной цене в России
0:43
Простые Технологии
Рет қаралды 2 МЛН
What percentage of charge is on your phone now? #entertainment
0:14