Making Websites With Next.js And Strapi - [11] - getStaticProps

Поделиться
HTML-код
  • Опубликовано: 17 ноя 2024

Комментарии • 13

  • @TheNomanAhmed
    @TheNomanAhmed 4 года назад +1

    Thanks Ivan great explanation 👍

  • @federicoaguilera9573
    @federicoaguilera9573 4 года назад +1

    Great explanation, thx

  • @thekkwet777
    @thekkwet777 4 года назад

    Since our nav isn't supposed to be modified often + it's called on every page loard, why aren't we using getStaticProps in the _app ?

    • @WatchandLearnTutorials
      @WatchandLearnTutorials  4 года назад

      I mentioned this in one of the episodes, you can't use anything except for getInitialProps in _app.js , at least for now.

  • @rizkchan
    @rizkchan 4 года назад

    will there be a tutorial for Polymer?
    I'm very curious to try polymer as my next project

    • @WatchandLearnTutorials
      @WatchandLearnTutorials  4 года назад

      Probably not, I never used it, and it doesn't look interesting to me at the moment. Sorry.

  • @brandon9043
    @brandon9043 4 года назад +2

    Is there a specific reason why you're still using isomorphic-unfetch when next.js 9.4 comes with built-in fetch?
    nextjs.org/blog/next-9-4#improved-built-in-fetch-support

    • @WatchandLearnTutorials
      @WatchandLearnTutorials  4 года назад

      Because I'm using 9.3.1 in this tutorial, this series started before 9.4, so I didn't want to do the upgrade, it's not what the episode is about. But you can use builtin fetch if you are on 9.4.

  • @tutorialsgang7804
    @tutorialsgang7804 4 года назад

    Unstable_revalidate will fix this Issue

  • @aseel1024
    @aseel1024 4 года назад +2

    U don't have to rebuild the whole Next app every time when a data for single page changes, instead use prop {revalidate}
    read more about it:
    github.com/vercel/next.js/discussions/11552

    • @WatchandLearnTutorials
      @WatchandLearnTutorials  4 года назад

      I think we talked about that in the next video 😃 ... At the time this video was recorder Next didn't have that functionality yet.

    • @aseel1024
      @aseel1024 4 года назад +1

      @@WatchandLearnTutorials sorry bro, I forgot to delete this comment after watching the next vid 😥

    • @WatchandLearnTutorials
      @WatchandLearnTutorials  4 года назад

      ​@@aseel1024 No problem man :)