Great explanation! Had a hard time understanding the difference of these 3 from reading the docs, this helped alot! Thanks!
@lalitvavdara58413 жыл бұрын
probably the best explaination for data fetching capabilities of Nextjs...great work
@anonysmooth6483 жыл бұрын
best explanation with real example, this is what I need in every tutorial
@kulrajchavda95383 жыл бұрын
Best explanation available on the internet!!
@aidanwalker30583 жыл бұрын
I struggled to understand between getStaticProps and getServerSideProps, watched a few videos but still didn't get it until yours. Greatly explained thanks 🙂
@ado3 жыл бұрын
Great to hear!
@maskman48214 жыл бұрын
Thank you for the great explanations/demonstration/illustrations of data fetching, I am very glad to understand the differences between getServideSideProps and getStaticProps, the mongodb example is awesome for us to understand the differences between these two functions. Thank you so much !!!
@piyshkmr2 жыл бұрын
Great Explanation. I really wanted a detailed video like this
@rudeadyet19924 жыл бұрын
This really cleared out some of the confusions. Thanks for the explanation. Appreciate it.
@mr.rajeshmekala3 жыл бұрын
You nailed it Ado. Clear explanation with examples. Please Keep making videos.
@ado3 жыл бұрын
Thank you :)
@farstep40113 жыл бұрын
This video is short and complete. Thanks for sharing!!
@joebao25362 жыл бұрын
very straight and practical explanation ! Awesome
@computecastle60993 жыл бұрын
Man, you are awesome. Was trying to understand these three data fetching methods for so long. Thanks!
@justinlu57303 жыл бұрын
the best explanation in all youtube, thanks ado, it helped me a lot !
@MeganGrantCurlyGirl4 жыл бұрын
Love it. Keep up the good work!
@sabeekaqureshi42593 жыл бұрын
The best explanation I have seen on this, thanks!
@emilioortega94872 жыл бұрын
your explanation was amazing ! please keep posting these videos :) great work
@evanlittle1143 жыл бұрын
Thank you, your explanation and demo was awesome and fully clarified how these concepts work
@joelmuluh12 жыл бұрын
Very excellent explanation!
@saalimkhan41333 жыл бұрын
Beautifully explained
@fyardlest13 жыл бұрын
Really helpful thank you! By the way, next time set the sound properly cause I have to push the volume up to hear, lol. We need more next js tuts like this one.
@anthonysim5632 жыл бұрын
Thank you, this was an excellent explanation!
@shailander133 жыл бұрын
I was running on local environment where site builds on every refresh so got really confused between the getStaticProps and getServerSideProps. Now it’s clear thanks to this video. Also the explanation of getStaticPaths was very good with easy to understand examples. Great work👏🏻👏🏻
@iShubhamPanchal3 жыл бұрын
Straightforward, Hands-on, Great explanation. Thanks buddy and keep going and I just subscribed .
@blakefre4 жыл бұрын
Great great explanations. Thank you so much for this, very grateful
@ado4 жыл бұрын
Glad it was helpful!
@MahmoudALSrouji4 жыл бұрын
Greatly explained. Thank you!
@devinflora2 жыл бұрын
Wonderful explanation! Thank you so much for making this video!
@PawanKumar-tu6ti2 жыл бұрын
Thank you for so useful video, really appreciate that.
@wfth16963 жыл бұрын
Great explanation. It really helped me grasp it properly. Thank you!
@jacobcambell3 жыл бұрын
Very well explained cleared my confusion thanks man 👍
@cutipets87062 жыл бұрын
Great video, great explanation Thank you so much
@mohitsojitra39654 жыл бұрын
Very well explained all the concepts.
@lefterisk18722 жыл бұрын
Man....your are awesome....for real....!!
@hiteshagja244 жыл бұрын
Very well explained.
@ado4 жыл бұрын
Glad you liked it
@carlosbenavides6703 жыл бұрын
Thanks for the video. Pretty useful.
@ThePeerroo3 жыл бұрын
Hvala Ado olaksao si mi zivot :D
@ankitdalasaniya24633 жыл бұрын
You save my day... thanks brother...👍👍
@skverskk3 жыл бұрын
Well done and very informative
@ОлегПузанкін4 жыл бұрын
Thank you for such great explanation
@ado4 жыл бұрын
Glad it was helpful!
@tech34252 жыл бұрын
Great Explanation
@darksurvey23472 жыл бұрын
really helpful.😊😊😊
@yasamansifarianasl70304 жыл бұрын
Thank you very much, it's really helpful for me! Please create more next.js videos
@ado4 жыл бұрын
More to come! Anything specific you'd like to see?
@rojitblaze134 жыл бұрын
Was really confused about getStaticProps and getServerSideProps as it was doing the same thing. This really helped. Is it mentioned some where in the docs?
@abasthurabli76304 жыл бұрын
Thanks for the video. I learned a lot of things. 👍
@GamerSolitO3 жыл бұрын
very usefull tutorial! This helped me more than the explanation of my college professor. Thanks man, you should upload more videos like this! New subscriber. you got some potential
@garrysandhu41973 жыл бұрын
Awesomeeeee Explanation.
@ganapathipranesh85064 жыл бұрын
Much neat and precise! thanks 🙏🏼
@josephuzuegbu74312 жыл бұрын
I love this video. Thanks
@isaacemmanuel3 жыл бұрын
Very well explained, Thanks Ado
@snpr96034 жыл бұрын
Thanks! Very good explanation!
@EVA_Hamza3 жыл бұрын
Awesome explanation, thank you
@stevejohann51013 жыл бұрын
Nicely done - thank you for your time!
@ado3 жыл бұрын
My pleasure!
@nikosspiropoulos84173 жыл бұрын
very good explanation thank you!!
@mirzadvarupa56523 жыл бұрын
Hvala ti Ado! :)
@babaganaabba7853 жыл бұрын
Thanks so much. This was really helpful
@FranciscoHernandez-vh6bv2 жыл бұрын
Honestly great video
@codingwithlucy2 жыл бұрын
Really nicely broken down, thank you so much :)
@pavlo-vasylkivskyi4 жыл бұрын
Thanks! Wery clean explanation 🤗
@zanbri3 жыл бұрын
One suggestion: the audio was quite low -- it would be helpful to normalize it to a higher volume. Otherwise, a great video - thanks!
@leanprogrammer4 жыл бұрын
Great stuff! More nextjs videos 👍
@javascriptprisoner9004 жыл бұрын
Wow! This video was really helpful for me. Thank you!
@nahida44443 жыл бұрын
one question about the getStaticProps and unstable_revalidate. You mentioned that it gonna update every second or every 10 mins (depending on what you set). Does that mean it can work as setInterval? I am trying to do make a cryptocurrency ticker, where I want the currencies will update every 5 seconds, so I am making api calls every 5 seconds using useEffect and setInterval. I wonder if I can make the function using getStaticProps
@anphearab82504 жыл бұрын
Great video ! Keep it up !
@ado4 жыл бұрын
Thanks!
@DanZ-fq2qs3 жыл бұрын
Great explanation mate, is the demo project open source ?
@PuntielRealty2 жыл бұрын
Thanks bro very clear and understandable. How about handling form submit and storing the data?
@neerajsinghtangariya25873 жыл бұрын
I think in new version nextjs provided revalidate instead of unstable_revalidate. Right ?
@shailander133 жыл бұрын
right
@adimardev15873 жыл бұрын
thank you it helps a lot!
@cutipets87062 жыл бұрын
I have a question what if we set the callback to true and we typed in an id in the URL that doesn't exist in the database how can we handle this situation?
@mroobert4 жыл бұрын
Great content! Liked & Subscribed
@ado3 жыл бұрын
Awesome, thank you! Much appreciated!
@markusbuchanan61302 жыл бұрын
Great Video! Just had a question : Is there any benefit to making fallback false? It looks like its just going to error out any new pages for new data that will be added in the future based on the video to me.
@dawid_dahl3 жыл бұрын
Great video. Subscribed!
@testrandom18522 жыл бұрын
Thank You!
@abdulmoeez133 жыл бұрын
Keep It Up ❤️
@sabassegovia39152 жыл бұрын
Awesome video!
@djelasrca80912 жыл бұрын
can you put link to the github repository? I would like to take a look on your function for data fetching
@dushyantkumar44284 жыл бұрын
Nice Video. Can you add more info on incremental static regeneration?
@ado4 жыл бұрын
Hey Dushyant, yes I will create a video on it next week!
@ado4 жыл бұрын
Made it: kzbin.info/www/bejne/f3vOhaOIbNiGras :)
@igotbit94543 жыл бұрын
Very useful. Subbed
@kirillpavlovskii83423 жыл бұрын
does node js express server runs under the hood to constantly fetch data and serve it in getservsideprops method?
@DanFlakes3 жыл бұрын
Great tutorial!
@hiberniankingy3 жыл бұрын
so correct me if I'm wrong here but do these fetch methods mean you don't have to rely on useEffect?
@igorr46823 жыл бұрын
Nice gb music 🎺
@mohammedhijas1063 жыл бұрын
Nice one !
@davidsonzed3 жыл бұрын
This is really awesome, can you also make a video about hooks
@rafahdez27723 жыл бұрын
is there any way the I can pass information from getStaticProps to getStaticPaths so the app doesn't have to do 2 request getting the same information??
@drworm11101003 жыл бұрын
Thanks!!!
@pannihto75884 жыл бұрын
Quality content. Just gotta work on editing a little bit :)
@ado4 жыл бұрын
Thanks! yeah it's a work in progress :)
@ivaylopetrov99563 жыл бұрын
Good job man
@hoodieson20083 жыл бұрын
Nice! Actually took something away from the video!!
@user-ce4ct8ws8r2 жыл бұрын
Hii there, I have a question .. What if the data fetching takes time ? would gSSP hold the page rendering or will empty page will appear?
@Rusakin3 жыл бұрын
how to revalidate in getserversideprops?
@FitnessChaos3 жыл бұрын
Why do you compress lines of code? How can a viewer understand the context of the code if you got lines compressed / hiding.
@berlino55634 жыл бұрын
Hi Ado, cool your channel :) i have a question: i'm working a fullstack app with Next js and a headless cms as backend restfull api. I need to handle logout user with jwt in cookie httponly (server side - not access in client side). what approach do you recommend about to implement logout user? what is the simplest and fast solution?
@ado4 жыл бұрын
Hi Berlino, that's a great question. For all things authentication and authorization I usually prefer to defer things to Auth0. They have a really good Next.js library (github.com/auth0/nextjs-auth0). But if you're rolling your own solution, I would just create an API route in Next.js to handle that logout call. In Next.js API routes you have full access to the request object so can destroy the cookie there thereby logging the user out. Let me know if this helps!
@aseeldweedar1802 жыл бұрын
thank you
@muhammadalbab26783 жыл бұрын
i'm a bit confused, then what is the difference between using only the useEffect hooks to fetch data and the getServerSideProps() ? can someone pls explain
@romimaximus3 жыл бұрын
Ok, so if i use the "getStaticProps " and "getStaticPaths", and build the app, and deploy it, ... and every time , something changes in the database, i gonna have to rebuild the app and deploy again ?...this kind of confusing.. 🤔
@mitchellbenjamin30712 жыл бұрын
thank u
@online-notary-us2 жыл бұрын
Where is the code to help us follow along?
@moosegoose12823 жыл бұрын
uhh how is data being passed from props to ur component? u didn't show that at all
@malikbrahimi75044 жыл бұрын
Can you do a tutorial on handling concurrent clients? For example if I'm on a page /item/:id where id=1 and another user deletes that resource from the DB, what should happen to me as a user while I'm on that stale page? What if two users are mutating an object at the same time?
@ado4 жыл бұрын
Hey Malik - that’s not a bad idea. I’ll create a video on it next week. :D
@gjahnavi16883 жыл бұрын
@@ado hey,can you explain me How to import that "fetchGraphQLQuery" in nextjs
@Psychobellic3 жыл бұрын
I'm going crazy with this lol... NextJS was so easy until now xD how can I get a query from the user and then run this query fetch in server-side? My API key cannot be exposed =(
@alooooooola4 жыл бұрын
so if facebook has 1 billion post so their backend has to query for 1 billion post id then frontend has to call an api to get that 1 billion paths. It sounds wrong for me
@ado4 жыл бұрын
If they wanted to pre-render all of that content, then yes, but they're unlikely to want to pre-render all of it ahead of time. With Incremental SSR though, those pages can be generated when they are requested and still served statically.