Give Taskade a try - www.taskade.com/ Use Coupon Code 'CODEVOLUTION' for 50% OFF lifetime discount applied to any upgraded subscription 1st 100 viewers to contact via www.taskade.com/contact get the upgrade for free!
@nikhilraj4098 Жыл бұрын
I love how you take things slowly, it really helps. I'm watching this despite Next 13 stable already being out. Thanks for such good videos, I hope you keep making them this way and grow stronger.
@mdtasib40583 жыл бұрын
Hey! I'm from Bangladesh. I really love this channel.
@md.sharifulhoque86893 жыл бұрын
me 2
@Jean-yk9eo3 жыл бұрын
Main, Thank you a lot. I was a bit confused by this and the last three videos helped me to understand what is going on,
@sergekamga4512 Жыл бұрын
This dude is an awesome 😢teacher
@shahreazneeloy21192 жыл бұрын
Great work man. Respect.
@haha7836hahah2 жыл бұрын
What if i have a database query in getStaticProps method and the data in database updates after building. Will the data in props update or will It still show the old data
@NIKHILYADAV-xm9ql3 жыл бұрын
Could we don't use useEffect or redux to fetch data and please elaborate basic difference between static Prop and side effect data fetching thanks
@learnearn87213 жыл бұрын
My guru vishwas thanks a lot
@godwinikechukwu31292 жыл бұрын
Great tutorial..
@parasbuda91743 жыл бұрын
sir as you have mentioned that we can use getStaticProp for the product listing page but getStaticProp fetch the data at build time so when the product list is added with another product.will that previous build will work or we have to make a new build for that?
@bhargavaprabureddym96933 жыл бұрын
Inside the getStaticProp method, we are fetching some data that can be updated anytime, We are instructing the getStaticProp method to fetch data from the external server, and pass it as props to the default function. The data can be anything like that, it can return 3 products or even 100 products, it depends on the data available in the external server. For that, we don't need to build it every time, if we do so there is no sense in using Next JS.
@user-xf5wx7uq2z3 жыл бұрын
@@bhargavaprabureddym9693 Since JSON is already loaded during build time, shall we not need to rebuild it if some more data is added to the API endpoint?
@abinashmandal6202 Жыл бұрын
If we have used getStaticProps, We have to rebuild every time data changes to get the updated data
@pravinchukkala545 Жыл бұрын
I got the answer, just search in google for how getStaticProps works you will get the answer
@vampirekabir2 жыл бұрын
finally i understand this
@mdabuhanif357 Жыл бұрын
Thank you for your fantastic playlist. Have we missed Static Generation without data video or something else? @Codevolution
@Ibrahim__123 Жыл бұрын
During the video, he mentioned that, that is the default way Next js works ..so if we are not fetching any external data...the page statically pre-render for better performance and SEO
@PM-rs4te Жыл бұрын
So, when you have data that is seldom changes, you can go this route but if its constantly changing, use useEffect? Did I understand this correctly??
@RubberDuckCoding3 жыл бұрын
VERY NICE!
@orincywhytedesigns2 жыл бұрын
This was so cool …
@sunveerahman19743 жыл бұрын
Sir , Please Show , How I can Integrate Material Ui with Next js
@ryanspeciale44513 жыл бұрын
What do you mean
@ryanspeciale44513 жыл бұрын
Install material ui and import the components....
@robertphillips1247142 жыл бұрын
Would this really be used for product pages in the real world? When my product database is updated, I'd need to rebuild and redeploy, right?
@manasjoshi70372 жыл бұрын
same doubt..do you find any answer?
@techupdate03 Жыл бұрын
I have a doubt. That async function is always return promise. To hande that we generally use .then . catch, then here how we get the props directly without handle the promise. Can anyone explain.
@aaqibrasool63413 жыл бұрын
I got just one issue, my CSS is not getting applied to statically generated pages at the first load in the network tab.
@rhul00173 жыл бұрын
whats build time in production means? u mention it around 3:00
@abdulbasir87403 жыл бұрын
For production builds, a page will be pre-rendered once when we run the build command. In development mode, the page is pre-rendered for every request you make.
@modernNeanderthal80011 ай бұрын
Now in 2024 we should be pushing for next 13 / 14, but if you are learning next 12 for a job understand that "getStaticProps" wants you to return an object. Try this return {props: { users: users } } or return {props: {data: users}}
@mohantee2 жыл бұрын
So, the user names would not have shown in the page source if we had used useEffect() inside the component to fetch the data instead of getStaticProps()?
@sharayuu2 жыл бұрын
I think it would have. useEffect also works for it. The we would have used useState as well, to set the users.
@amigaanguy2 жыл бұрын
Whenever I run this basic code , I getting ECONNRESET error, but data fetching working fine with useEffect().
@meraichaitali84212 жыл бұрын
Hey, I am getting this error "Failed to load SWC binary for win32/ia32". This error is raising, whenever I use like getstaticprops and related server side functions. I have applied this solution but this is not giving any longer support: Step 1. add this line or edit next.json.js { swcMinify: false // it should be false by default } Step 2. add a ".babelrc" file to project root dir Step 3. add this snippet to the new file ".babelrc" { "presets": ["next/babel"] } Step 4, you need to run this command as steps 1-3 will remove SWC failed to load error but you will notice another error when you run the build command. So run this too npm install next@canary
@imrannaaziremon4982 жыл бұрын
helpful
@sanyamjain4777 Жыл бұрын
What does it mean by build time?
@UpdaterMC2 жыл бұрын
what about fetching a specific user?
@daniyaniazics3 жыл бұрын
GREAT
@salmansaysit2 жыл бұрын
dont forget 2 await at fetch and at res.json cost me hours
@vilayetseferov31423 жыл бұрын
great
@MGopinath73 жыл бұрын
"unable to verify the first certificate" it shows like this
@abhishekvishwakarma90453 жыл бұрын
Can you give some more Real use cases of Static generation with data like how this is different from React Data fetching (off-course I got it we can pre-render our HTML while fetching data while in react we generally use componentDidMount or useEffect which called after our page renders) this is confusing a bit Hope will get it soon🔥😅, Great going love the new Concepts
@abinashmandal6202 Жыл бұрын
With static generation data is fetched at build time only, so when user goes to that page, there is no fetching any more and page can be loaded faster. However in react with every request there is fetching of data, so comparatively slower site