thanks so much for this. just learning react and next.js for the first time and this explanation was so much more simple with respect to next.js than other resources I found online. sometimes you wonder if something is really complicated and then you just realize the explanations are poor. this however was a great explanation video! thanks again
Hey, loved the video, But list of events on the side bar aren't updating on the production build? If you add new document on the database, it isn't showing up on the app.
@@areweinaloop Do you have a specific timestamp you're referring to? I just rewatched and I don't see a time where I added something to the db but it didn't show up?
@@JamesQQuick 25:20 The evetlist updates in developer mode, but if you try it in build version, the page is rendered as static page at the build time and wouldn't update later upon change in database. I had a similar issue and resided to converting the component to client side.
How to pass additional data from one page to another page/server component. For example, There is a user object, the link href is based on user Id, along with user id how can i pass the User object without displaying the data in URL
Hmm, I'm not 100% sure I understand the use case. One thing you can definitely do though is just query that user info on the server. You certainly wouldn't want to pass the user info in the URL. I believe you'd also be able to leverage stores on the frontend to share data as well
This was extremely helpful to wrap my mind around the routing and file paths for next js
Yay! So glad to help!
thanks so much for this. just learning react and next.js for the first time and this explanation was so much more simple with respect to next.js than other resources I found online. sometimes you wonder if something is really complicated and then you just realize the explanations are poor. this however was a great explanation video! thanks again
Wow, this is amazing to hear!! Glad it was helpful!
Hey, loved the video, But list of events on the side bar aren't updating on the production build? If you add new document on the database, it isn't showing up on the app.
In my demo or in yours?
@@JamesQQuick In your code and in mine.
@@areweinaloop Do you have a specific timestamp you're referring to? I just rewatched and I don't see a time where I added something to the db but it didn't show up?
@@JamesQQuick 25:20 The evetlist updates in developer mode, but if you try it in build version, the page is rendered as static page at the build time and wouldn't update later upon change in database. I had a similar issue and resided to converting the component to client side.
How to pass additional data from one page to another page/server component. For example, There is a user object, the link href is based on user Id, along with user id how can i pass the User object without displaying the data in URL
Hmm, I'm not 100% sure I understand the use case. One thing you can definitely do though is just query that user info on the server. You certainly wouldn't want to pass the user info in the URL. I believe you'd also be able to leverage stores on the frontend to share data as well
Does soft navigation gets the updated data from database in server component ?
Do you mean when Next.js is prefetching the data for the next page? Yep, it will get the latest data!
Thanks
Thanks a lot!
Glad you enjoyed it!
P r o m o s m
first!
Thanks for watching!