Every Framework Just Got This AMAZING Next.js Feature

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

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

  • @konstanti
    @konstanti ปีที่แล้ว +7

    I think that SWR is a pattern that is ok only for blog like content. It won't cut it in any UI where you actually need to keep things up to date (and I think that's most of UIs out there).

    • @JLarky
      @JLarky ปีที่แล้ว +5

      have you heard about our lord and savior React Query?

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

      No no you’re wrong… ISR and and SWR are two different strategies for different use cases . SWR is for optimistic ui so that in a dashboard style app the changes feels instantaneous with support of fallback on error. ISR is somehow similar (and still) but at a greater scale and you only notice it after you reload the page. Know the difference 🙂
      In react there is TanstackQuery or Swr and in vue there is UseSWRVue and TanstackQuery but it’s all about SWR

  • @paulo_vercel
    @paulo_vercel ปีที่แล้ว +4

    ISR is not the same thing as "stale-while-revalidate" (SWR).
    Vercel supports SWR since a while ago (search for 'Serverless Pre Rendering Vercel'). You don't have the same set of guarantees in SWR that you have with ISR. The difference on the surface may look marginal, but digging a little deeper, you can see ISR is better.

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

    When you say full-stack web apps, do you mean full-stack JS web apps? Or is there a benefit to other tech stacks as well? Or maybe the analogy was a bit more on-the-nose than I was thinking and this is only for full-stack coffee script apps.

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

      full-stack apps with any framework can benefit from this! you just return the headers! laravel, rails, django, whatever!

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

      @@adamdotdev So I just refactored my entire app into coffee script for nothing? Dang it.

  • @JLarky
    @JLarky ปีที่แล้ว +3

    I'm confused :) it sounds like what you described is "AWS just got this Vercel feature" but the title is "Astro just got this Next.js feature"

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

      sir, it's the framework wars, not the cloud provider and reseller wars

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

    I love me some stale coffee

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

    So it's all about coffee?

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

    First!

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

    So basically, he's toxic so React blocked him in Twitter.
    He hates React now so he's spreading misinformation about them.

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

      react didn't actually block me and i also don't hate react, i just don't use it anymore 😅