React Query with Next.js Static Site Generation (SSG) - React Tutorial 90

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 ธ.ค. 2024

ความคิดเห็น • 10

  • @codebreakthrough
    @codebreakthrough  2 ปีที่แล้ว

    ⚛ FREE React Course (download & bonus content) - calcur.tech/free-react-course
    React TH-cam Playlist - calcur.tech/react-playlist
    Code - github.com/CalebCurry/react-query
    github.com/CalebCurry/react-next
    github.com/CalebCurry/react-graphql
    github.com/CalebCurry/react-backend-django
    github.com/CalebCurry/ts-axios
    github.com/CalebCurry/react
    Backend Python - www.codebreakthrough.com/backend-python

  • @marcuslorenzokai
    @marcuslorenzokai ปีที่แล้ว +1

    I needed this, right now. Thanks for your work brother.

  • @MadRad1000
    @MadRad1000 ปีที่แล้ว

    Beautiful bro!

  • @thejugovic
    @thejugovic ปีที่แล้ว

    Great vid! Tnxxx

  • @xice111
    @xice111 ปีที่แล้ว

    Where is app folder

  • @showduhtung
    @showduhtung ปีที่แล้ว

    Hey Caleb! Thanks for teaching this! Just a comment but I think it'd be helpful if the project would have a commit for each episode of the series. I wasn't that interested in the rest, and only interested in this episode, to catch up to what you have here, was a bit difficult. Cheers!

  • @marklong2060
    @marklong2060 2 ปีที่แล้ว

    So using Next JS for the first time and I am about 80% finished with the project. I wanted the site to be 100% static but to fetch data from a Directus back end. Then I learned that you cannot getStaticProps in a non page component or the _app.js file. This means my nav(s) logo(s) and business information has to either be hard coded or I will need to pass them to each page individual (and make separate calls to the api for the data) or I will need to client side render the data (because I cannot simply include them in a layout). Needless to say this is a major disappointment. I was kinda hoping that someone out there knows of a different way.

    • @MrJfergs
      @MrJfergs 2 ปีที่แล้ว

      Unfortunately that's just how next works for now. You can only do SSG at a page level.

    • @MrJfergs
      @MrJfergs 2 ปีที่แล้ว +1

      Also while Gatsby is not the best either it does have per component queries for ssg but it can be a pain to work with tbh