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

  Рет қаралды 45,210

developedbyed

developedbyed

Күн бұрын

Пікірлер: 82
@tali6616
@tali6616 8 ай бұрын
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 7 ай бұрын
I feel the same. He’s a great presenter. Very friendly vibe
@nyahhbinghi
@nyahhbinghi 11 күн бұрын
nitty gritty bro :) not needy greedy haha
@jamesauble8091
@jamesauble8091 6 ай бұрын
i was confused about this as well, but you don't necessarily need to mark a component async for it to be a server component. It will be a server component by default unless marked client. Marking it async is only needed if you're gonna use await within it.
@jack_mc8
@jack_mc8 8 ай бұрын
I love your mood, it cheered me up since the start, thanks!
@ChrisChristensen143
@ChrisChristensen143 8 ай бұрын
The camera stare after "blue balls" 😂😂😂
@DK-sq7of
@DK-sq7of 8 ай бұрын
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 8 ай бұрын
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
@fakeitsoyoumakeit
@fakeitsoyoumakeit 8 ай бұрын
this is the only channel that doesn't make me bored 🤓
@ajiteshmishra0005
@ajiteshmishra0005 8 ай бұрын
What is the difference of using in header and body?
@DanielSpindler-gc7xh
@DanielSpindler-gc7xh 7 ай бұрын
what would i do for tokens? would i handle that in the route handler when i need the cookies?
@danielpiedraquintero
@danielpiedraquintero 8 ай бұрын
‘use hybrid’ will be amazing
@aaronshunter
@aaronshunter 8 ай бұрын
0:40 did my hair just grow back? 🤣
@coltonaallen
@coltonaallen 8 ай бұрын
Top-notch planning there
@hamirmahal
@hamirmahal 7 ай бұрын
At 15:28, what's the extension that shows you the import size? Thank you for the tips in this video.
@naminami3180
@naminami3180 7 ай бұрын
import cost
@vignesh_m_1995
@vignesh_m_1995 7 ай бұрын
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) ??
@thibaultvl
@thibaultvl 23 күн бұрын
Hi there, plaiceholder is archived now. What would your advised way be to get a placeholder blurred image for remote images?
@wuffgang5333
@wuffgang5333 8 ай бұрын
but do blurred image make any sense if the remote image must be loaded for blurring?
@ExileEditing
@ExileEditing 8 ай бұрын
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 8 ай бұрын
​@@ExileEditing Got it. thank you for explaining.
@Al7alafawy
@Al7alafawy 8 ай бұрын
THAT WAS AWESOME!!!! You LITERALLY solved all my troubles😅🥰🥰
@alaaeddin9153
@alaaeddin9153 5 ай бұрын
as I know next js is using server by default so we don't need to type 'use server'
@tomspatula616
@tomspatula616 7 ай бұрын
Hi Ed, legend video as always!
@RaulReyesOnline
@RaulReyesOnline 8 ай бұрын
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" ?
@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.
@FG-td4vs
@FG-td4vs 2 ай бұрын
well yeah obviously....
@theDanielJLewis
@theDanielJLewis 8 ай бұрын
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 8 ай бұрын
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.
@developedbyed
@developedbyed 8 ай бұрын
Shoutout the the guy that called me a hobo in the comments! Cut a fresh cut boyyy
@6uiti
@6uiti 8 ай бұрын
I looked for hobo comment but I can't find it and now I'm disappointed
@mDHARYL
@mDHARYL 8 ай бұрын
What does hobo mean?
@coltonaallen
@coltonaallen 8 ай бұрын
​@@mDHARYLa term for a homeless person
@darwinmanalo5436
@darwinmanalo5436 6 ай бұрын
lol
@alaaeddin9153
@alaaeddin9153 5 ай бұрын
no need to import images from public folder, if the image is under the /public folder directly you can just type the name of the image and its extension. src="img.jpg" if it's under subfolder in public let's assume it's /media folder src="media/img.jpg" you need import only if the image isn't in public holder. --- Thanks for the amazing tutorial.
@ivanandreev1026
@ivanandreev1026 3 ай бұрын
Helpful. Thank you very much.
@nvsWhocares
@nvsWhocares 8 ай бұрын
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 8 ай бұрын
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 8 ай бұрын
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 8 ай бұрын
Please will Nextjs still cache the data without "use server" at the top? @nvsWhocares @developedbyed
@haktanalbayrak384
@haktanalbayrak384 8 ай бұрын
What is the name of the theme? I like it very much
@MrSpinozadp
@MrSpinozadp 8 ай бұрын
Wooww really cool tips! Thanks 🙏
@EttoreMihaili-s4g
@EttoreMihaili-s4g 8 ай бұрын
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 :)
@Agustin-jo8mv
@Agustin-jo8mv 8 ай бұрын
Hey your Javascript "Full Course Download" link is broken. 😢😢😢😢
@sellimenes
@sellimenes 8 ай бұрын
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 8 ай бұрын
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 8 ай бұрын
@@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 8 ай бұрын
​@@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. 🙏
@fsociety.dat101
@fsociety.dat101 8 ай бұрын
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.
@cb73
@cb73 5 ай бұрын
I just turned 50. I’ve been a web developer for 20+ years and I never get bored. I learn something new everyday. It’s not too late to jump back in.
@HisSonsMusic
@HisSonsMusic 4 ай бұрын
To anyone experiencing hydration errors using next themes , the trick is to put it under the body not above, took me a minute.
@DevAdeniji
@DevAdeniji 8 ай бұрын
Really helpful Thanks!
@developedbyed
@developedbyed 8 ай бұрын
No worries!
@renjielin1065
@renjielin1065 8 ай бұрын
I like your font , what's this ?
@raj080288
@raj080288 8 ай бұрын
Nice one dude! What are you using for auto suggestion code?
@developedbyed
@developedbyed 8 ай бұрын
I'm on and off on github copilot hahaha
@raj080288
@raj080288 8 ай бұрын
@@developedbyed haha is that free?
@bennysmith4557
@bennysmith4557 8 ай бұрын
8:27 legend
@ragtop63
@ragtop63 4 ай бұрын
Are you related to Jeff at CraftComputing? The resemblance is uncanny.
@sebastianidzkowski6810
@sebastianidzkowski6810 5 ай бұрын
You got nice hints, it was some plugin? I
@codernerd7076
@codernerd7076 8 ай бұрын
Any discounts for the course it's priced way too high for my buget
@sortingarray
@sortingarray 6 ай бұрын
Great video but your hat was missing! But I'm still struggling with the next js font
@justmeddling
@justmeddling 7 ай бұрын
Thanks baby reindeer sent from iphon
@knezevskia
@knezevskia 3 ай бұрын
I came for the 5 tips and stayed for the blue balls.
@AndreyBelfu
@AndreyBelfu 8 ай бұрын
cool Thumbnail
@AnasKhan-fi7xk
@AnasKhan-fi7xk 8 ай бұрын
Best content
@MuhammadFajar-os1fq
@MuhammadFajar-os1fq 8 ай бұрын
perhaps sir, i think the video will be better if you use the better mic🙏🙏
@ys1197
@ys1197 8 ай бұрын
11:00 this
@aymenbachiri-yh2hd
@aymenbachiri-yh2hd 3 ай бұрын
THank you so much
@khaldounal-nuaimi3594
@khaldounal-nuaimi3594 8 ай бұрын
nice haircut!
@BrendaKincaid
@BrendaKincaid 8 ай бұрын
@developedbyed If you were referring to me, I am a woman. But thank you for indeed cutting that hair.
@ilirbajrami2902
@ilirbajrami2902 8 ай бұрын
So you knew that you are going to have a haircut beforehand? :D
@anthonymifsud6141
@anthonymifsud6141 8 ай бұрын
I like your cut g
@developedbyed
@developedbyed 8 ай бұрын
ayyy thanks
@Wenlu_
@Wenlu_ 7 ай бұрын
waddup pewds
@fsociety.dat101
@fsociety.dat101 8 ай бұрын
Make sure you are looking after your health man. Make sure you are eating enough.
@KnowledgeBoxMM
@KnowledgeBoxMM 8 ай бұрын
First comment 4 my legend ❤
@simoncallelaverde
@simoncallelaverde 4 ай бұрын
npm run dev ed
@mohaimenkhalid3844
@mohaimenkhalid3844 8 ай бұрын
cool
@AndrewClunie-pt8ww
@AndrewClunie-pt8ww 2 ай бұрын
this dude is on acid
@learnings.academy
@learnings.academy 5 ай бұрын
where is ur first channel?
All 29 Next.js Mistakes Beginners Make
1:45:10
ByteGrad
Рет қаралды 160 М.
10 common mistakes with the Next.js App Router
20:37
Vercel
Рет қаралды 238 М.
REAL or FAKE? #beatbox #tiktok
01:03
BeatboxJCOP
Рет қаралды 18 МЛН
NextJS 14 Trick I bet you didn't Know 🤯
15:56
Piyush Garg
Рет қаралды 8 М.
HTMX + GO 15 Minute Quickstart (For Javascript Devs)
16:59
developedbyed
Рет қаралды 29 М.
Don't Make These Next.js Mistakes
13:01
Dave Gray
Рет қаралды 24 М.
Next.js Server Actions...  5 awesome things you can do
7:51
Beyond Fireship
Рет қаралды 286 М.
Every React Concept Explained in 12 Minutes
11:53
Code Bootcamp
Рет қаралды 902 М.
All 17 React Best Practices (IMPORTANT!)
1:46:11
ByteGrad
Рет қаралды 223 М.
Learn Next.js Parallel Routes In 16 Minutes
16:18
Web Dev Simplified
Рет қаралды 144 М.
How I structure my next.js applications
23:19
Web Dev Cody
Рет қаралды 35 М.