Next.js 'use cache' in 100 seconds

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

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

  • @filipjnc
    @filipjnc 2 месяца назад +77

    This was a Fireship type of content without the memes and sarcasm. Love it!

  • @islzzz
    @islzzz Месяц назад +11

    God. I love every single video you've uploaded, the animations are smooth as hell. Your videos are way even better than paid content I've seen. 😭

    • @Delba
      @Delba  Месяц назад

      Thanks, appreciate it!

  • @edgarasben
    @edgarasben 2 месяца назад +10

    Really awesome! The caching story in Next.js is much clearer now. Looking forward to trying it out to see if it's as easy as it sounds! ;)

  • @Next-Js
    @Next-Js Месяц назад

    I always see your commits and so on in the vercel repository , seeing how active you are, I hope you can upload more videos, you explain in an amazing way, I would like to see more complete topics or projects, with the way you explain it would be appreciated.

  • @hey_you_123
    @hey_you_123 2 месяца назад +5

    Like always best nextjs explanations on the internet. Thank you very much for taking the time to do this content. Nothing related to this but what is still missing on nextjs videos out there is how to architecture the use of nextjs on advanced use cases, dynamic data in layouts dependent also on actions on pages, and a lot more. All those videos about lets build entire website in 10 minutes is not even close to what reality is. Thanks any way for driving me closer to creating my own best way to do things

    • @Delba
      @Delba  2 месяца назад

      Thanks. A few people like @codewithantonio, @nikolovlazar and @WebDevCody post longer form architecture videos you might be interested it.

  • @jean-doe
    @jean-doe 2 месяца назад +6

    As they said in cs50 course, this is Nextjs, the vercel react framework 🇨🇲 !
    Thank's Delba continuous to explain something simple as you do 💪.

  • @muhammadobaidullahkhan5887
    @muhammadobaidullahkhan5887 2 месяца назад +2

    Such a great wrap of information in 100 seconds, Love it

  • @MiteshBhagwant
    @MiteshBhagwant Месяц назад +1

    I love your simplicity.

  • @goldenglowitsolutions
    @goldenglowitsolutions 2 месяца назад +6

    Nice video, keep it up!
    Salutes from Brazil!

  • @NIXO3D
    @NIXO3D 2 месяца назад +10

    That was a really great explanation, Thanks Delba!

  • @afrosoul4eva
    @afrosoul4eva Месяц назад +1

    Fireship level of content.

  • @ZeynalZeynalli-yo2nl
    @ZeynalZeynalli-yo2nl 2 месяца назад

    this is so COOL! im so excited to update my next js project to the next level. really appreciate it.

  • @hugoalyra
    @hugoalyra 18 дней назад

    Amazing content! I really appreciate the way you present code-it’s both clear and engaging. I noticed you’ve mentioned Remotion before, but it would be awesome to get some guidance on where to start. Are you using any specific tools or libraries to handle differences, animations, and transitions? Any tips or clues would be greatly appreciated!

  • @TommySaucey
    @TommySaucey 2 месяца назад

    What a good content, love NextJS ! Thank You Delba

  • @prometheas
    @prometheas 2 месяца назад

    Wonderfully concise! Thanks for this

  • @ZBROOS
    @ZBROOS 2 месяца назад

    Thank you very much for this content, good and simple way of explaining it

  • @PiyushBhagchandani1
    @PiyushBhagchandani1 Месяц назад

    loved your way of explaining thanks much!

  • @coffeTony
    @coffeTony 2 месяца назад +1

    Love your videos Delba

  • @iamrithmic
    @iamrithmic 2 месяца назад

    brilliant work as always 🚀

  • @soufianeco
    @soufianeco 2 месяца назад +1

    Thanks Delba! Can you also cache client components? I am not sure which cache layers "use cache" handles.

    • @Delba
      @Delba  2 месяца назад +3

      Kind of, not directly, if a Server component with 'use cache' uses client components, the total output will be cached. But you can't add 'use cache' inside the 'use client' boundary.

  • @chungweileong
    @chungweileong 2 месяца назад

    Pretty cool, I like that now Next.js will force you to wrap component within suspense for dynamic content, much clearer IMO.

  • @carvierdotdev
    @carvierdotdev 2 месяца назад

    Awesome as always...

  • @alsherifkhalaf7385
    @alsherifkhalaf7385 Месяц назад

    Concise and clear
    Thank you ❤

  • @songkeys1833
    @songkeys1833 2 месяца назад +2

    Thank you for this clear video. May I ask what tool did you use to create amazing demostration like this?

    • @Delba
      @Delba  2 месяца назад +1

      Thanks, I use Remotion

  • @thibaultvl
    @thibaultvl 2 месяца назад +2

    Hi Delba, thank you for this clear explanation. My current project is using unstable_cache. Is unstable_cache irrelevant now, and “use_cache” the way to handle caching in Next.js? Thanks in advance

    • @Delba
      @Delba  2 месяца назад +3

      Keep using unstable_cache for now. 'use cache' is still in active development. We'll provide detailed migration guides + automatic codemods when it's done.

  • @Leo-fn3mg
    @Leo-fn3mg 17 дней назад

    Love your video format! Are you using vscode? How did you make the line numbers green?

  • @neonblaze1-c6x
    @neonblaze1-c6x 2 месяца назад +2

    Nice explanation

  • @juristr
    @juristr 2 месяца назад

    awesome video, as usual 👏

  • @garrettlovetv
    @garrettlovetv Месяц назад +1

    Will all of this only work when hosting on Vercel, or will it work regardless of host, say something like Firebase App Hosting?

    • @Delba
      @Delba  Месяц назад +1

      The cache is in-memory by default and has a cache handler you can configure to persist on your own infrastructure.

  • @searchezant3226
    @searchezant3226 Месяц назад +1

    Fireship got me here xD

  • @kartikkaushik4743
    @kartikkaushik4743 2 месяца назад

    Nice share 😃 keep sharing pls such good content like this delba

  • @codeChuck
    @codeChuck 2 месяца назад

    Concise, laconic, only things that matter! I like this style A LOT! How do you create your videos?

    • @Delba
      @Delba  2 месяца назад +1

      Thanks, I use Remotion.

    • @codeChuck
      @codeChuck Месяц назад

  • @yj4105
    @yj4105 2 месяца назад

    This is amazing ❤

  • @mahmoudfarghly2970
    @mahmoudfarghly2970 2 месяца назад +3

    1:08
    Having parts cached and other dynamic, isn't this the PPR feature or this is something else ?

    • @dominikkoniarz1803
      @dominikkoniarz1803 2 месяца назад

      I thought about the same. I need to know!

    • @upsxace
      @upsxace 2 месяца назад

      Nop! PPR makes the whole page behave in the same way: everything is static rendered, besides the dynamic parts with suspence.
      This is better because you can literally split the page into static and dynamic parts, and the dynamic parts can be serverside rendered without suspense! (at least i assume so)
      The examples she gave might not be the best to explain the difference between PPR and use cache, but look at 1:19 in the video.
      If you look at the code at the top part of the screen, she is using fetch, therefore, if you were using PPR, actually the whole route would turn dynamic anyways, nothing would be static, because the fetch is being done outside of a component wrapped by Suspense! PPR only works if you wrap whatever component is using the fetch, reading the headers or reading the cookies with suspense!
      With use cache, i assume you can literally use the fetch anywhere, and it will cache the result and make the outcome static as long as it doesnt expire.

    • @upsxace
      @upsxace 2 месяца назад

      @@dominikkoniarz1803 see my comment above

  • @mertdr
    @mertdr 2 месяца назад

    How about creating a wrapper function for db query and passing optional caching parameters. Some quieries might be cached some not. Is it possible to put “use cache” in an if state like if(cache) “use cache”? Second problem is Suspense. Why would I need a fallback loading state for a cached query already received server-side. I didn’t understand the purpose of it except ppr. It’s nice to have a built-in reacy query style fetching after dom loaded yes, but i hope it doesn’t affect static renderings. Thanks for your work and hope there are answers for these.

    • @Delba
      @Delba  2 месяца назад

      'use cache'
      fn Cached(profile) {
      cacheLife(profile)
      ....
      }
      ---
      boolean ? :
      ---
      The fallback for Suspense is not for cached stuff, it's to show something to the user while dynamic stuff loads.

  • @codefinity
    @codefinity 2 месяца назад

    Thanks for the updates.

  • @Dev_Bach
    @Dev_Bach Месяц назад

    Thank yu, please which software are you using to make this smooth animation on your code when you explain it

  • @theishu404
    @theishu404 2 месяца назад

    Greetings from India, Delba!💖💖 Your content is consistently impressive. Have you considered building a complete application with Next.js, incorporating all the best practices? Your work is truly remarkable.

  • @ekremmehmetguven1278
    @ekremmehmetguven1278 Месяц назад

    Can components be cached? If so, has it been converted to static HTML? What would it be like in terms of performance to convert dynamic data, such as comments, to HTML on the server and present it statically in every request?

  • @_ped_
    @_ped_ 2 месяца назад

    so good 🖤

  • @Deus-lo-Vuilt
    @Deus-lo-Vuilt 2 месяца назад

    Me gustan tus videos y la forma de explicar, ojala subas contenido mas largo o frecuentemente n❤

  • @aymenbachiri-yh2hd
    @aymenbachiri-yh2hd 2 месяца назад

    Great video thank you so much

  • @PauloRodrigues-d9j
    @PauloRodrigues-d9j 2 месяца назад +2

    What theme do you use in your IDE?

    • @Delba
      @Delba  2 месяца назад +1

      Vitesse

  • @divyarthinfotech
    @divyarthinfotech 2 месяца назад

    Such an amazing feature 😍. Your videos are so simplified. Which tool or effect is used here to demonstrate code? Please guide me.

    • @Delba
      @Delba  2 месяца назад +1

      Thanks, I use Remotion.

    • @divyarthinfotech
      @divyarthinfotech 2 месяца назад

      @@Delba Thanks 👍

  • @omak3313
    @omak3313 2 месяца назад +1

    Great! When will these APIs become stable?

    • @Delba
      @Delba  2 месяца назад

      No dates yet, but it's high priority for the team.

  • @joyahmed963
    @joyahmed963 2 месяца назад

    Thank you 💖

  • @Luisllaboj19
    @Luisllaboj19 2 месяца назад

    That’s interesting and the animations are so good!
    But what would happen by default of if switch from Next 14 to Next 15 and I try these changes and I *don’t* add *any* new wrappers or “use cache” directives?
    Will it forcefully throw an error and force me do the respective changes?
    Would it also throw an error if I’m only doing RSC and server rendering for static markup? 😢 or will it render all at build time and serve as static by default?
    Is “use cache” the only way to tell Next.js that I want a static page cached in the CDN?

    • @Delba
      @Delba  2 месяца назад +1

      Thank you! These changes are not part of Next.js 15. They are in the canary version and have to be enabled via an experimental flag. When the time comes to make these stable we will heavily invest in migration tooling and education.

    • @Luisllaboj19
      @Luisllaboj19 2 месяца назад

      @ thank you for responding!
      These changes look promising and exciting :) glad to know you all hear our feedback

  • @charlesdoley
    @charlesdoley 2 месяца назад

    Love you Delba

  • @vivekkumar-qu4tp
    @vivekkumar-qu4tp Месяц назад +1

    What is your VS code theme and font family

  • @stephn.6236
    @stephn.6236 2 месяца назад

    What about server actions that do mutations we want to be reflected immediately after? Now we only have revalidateTag with cacheTag and no more revalidatePath?

    • @Delba
      @Delba  2 месяца назад +1

      you can also use revalidatePath

    • @Luisllaboj19
      @Luisllaboj19 2 месяца назад

      revalidatePath() uses revalidateTag() under the hood.
      - source: I heard Lee Rob say that in a live stream.

  • @tawhidkhondakar731
    @tawhidkhondakar731 2 месяца назад

    You are awesome

  • @v0.1-y1j
    @v0.1-y1j 2 месяца назад +4

    so it's react query now?

    • @Delba
      @Delba  2 месяца назад +3

      It's slightly different. React query is geared around the client side and has many great features for that. cacheLife is across client and server caching layers.

    • @v0.1-y1j
      @v0.1-y1j 2 месяца назад

      @ thanks!

  • @LutherDePapier
    @LutherDePapier 2 месяца назад

    Random question: inline server actions need the 'use server' directive, so can it combo with 'use cache' and if so how does that work?

  • @jacquesduplessis6175
    @jacquesduplessis6175 2 месяца назад

    That's pretty nice.

  • @eduardlucaci7369
    @eduardlucaci7369 Месяц назад

    is ok to use "use cache" now for a new production project?

  • @pplytas
    @pplytas 2 месяца назад

    I like the directive idea overall but when it comes to adding cacheTag and cacheLife this API starts to feel a bit off. Something like a function decorator which can also accept parameters feels a bit more convenient and keeps relevant caching information together in one place. Though I don't know if this covers the file-level directive scenario and definitely doesn't allow using data from the request.

    • @Delba
      @Delba  Месяц назад +1

      All APIs choices have tradeoffs. The team evaluated many styles, and this one ticked the most boxes, considering all the constraints and future plans.

  • @floviskabanda8044
    @floviskabanda8044 Месяц назад

    Hi, was this directive only possible in next 15 canay ?

  • @DVSK1
    @DVSK1 Месяц назад

    Damn, this font is so awesome, can u share your font vscode settings?

  • @JatoGo-wf1om
    @JatoGo-wf1om 2 месяца назад

    what theme vscode u use, so chill

    • @Delba
      @Delba  2 месяца назад +1

      Vitesse

    • @JatoGo-wf1om
      @JatoGo-wf1om 2 месяца назад

      @@Delba thank u

  • @crampssss
    @crampssss 2 месяца назад

    What happens if I MyComponent has 'use cache' and I wrap it inside a Suspense component?

    • @Luisllaboj19
      @Luisllaboj19 2 месяца назад

      My guess it that the Suspense fallback won’t ever trigger since the children will always return the same cached output. I believe Suspense will be ignored.

    • @Delba
      @Delba  2 месяца назад

      Whatever is inside the 'use cache' boundary will be cacheable, whatever is above it will be dynamic. If there is nothing dynamic, it won't take time, so it should be instant.

  • @bkohnen
    @bkohnen 2 месяца назад

    Will this cache the entire function or just the fetch call inside it.
    e.g. will it also cache “return new Date()”

    • @Delba
      @Delba  2 месяца назад

      It caches what is returned. E.g. if you fetch a 1mb json payload, but return data.title, it will only cache that.

    • @bkohnen
      @bkohnen Месяц назад

      ​@@Delba does "use cache" work during development as well? I couldn't find any information on that. I hope it does cache during dev too. Having different behaviour in dev (and potentially hit API rate limits) are very confusion.
      If its not cached, imo there should be options to enable dev caching.
      thanks! 💜

    • @Delba
      @Delba  Месяц назад +1

      Yes, it's an in-memory cache, that works in dev (hard refreshing clears the cache).

    • @bkohnen
      @bkohnen Месяц назад

      @ 💙💜💛💚

  • @akoladebode-ajayi327
    @akoladebode-ajayi327 2 месяца назад

    Great 😃

  • @z1982_
    @z1982_ 2 месяца назад

    Why using Suspense when we can use the loading.ts file ?

    • @Delba
      @Delba  2 месяца назад

      You can use either. Loading.js creates a suspense boundary.

  • @yashchauhan5710
    @yashchauhan5710 2 месяца назад

    Any idea when 15 will be fully ready along with ppr?

    • @Delba
      @Delba  2 месяца назад

      v15 is already out. PPR is still in active development. The changes in the video allow make PRR easier to implement and use.

    • @yashchauhan5710
      @yashchauhan5710 2 месяца назад

      @Delba can u make a video explaining how use cache is different from ppr?

  • @fayaz2956
    @fayaz2956 2 месяца назад

    the app router is still so buggy for the dynamic SEO :( Still using pages router

    • @Delba
      @Delba  2 месяца назад

      Tell me more and I can share it with the team.

  • @vincentchan3518
    @vincentchan3518 Месяц назад

    Is there no longer revalidatePath for the new caching system?

    • @Delba
      @Delba  Месяц назад

      It's still there.

    • @vincentchan3518
      @vincentchan3518 Месяц назад

      @@Delba Understood. The new caching system will combine the data cache and full route cache. If you use `use cache` on a page level, it will be full route cache. On a function level, it will be data cache (or legacy unstable_cache). I am waiting for further documentation about this in the caching section of Next.js documentation. Thank you.

  • @avigdev
    @avigdev 2 месяца назад

    days can be 3 days or 6 days or 20 days and more.what the maximum?

    • @Delba
      @Delba  2 месяца назад

      The default cache profiles are seconds, minutes, hours, days, weeks or max. The idea is most content falls into one of these broad buckets. If you want to be very specific, you can create your own cache profiles with the exact values you want.

  • @zocky3282
    @zocky3282 2 месяца назад

    Can i use 'use client' and 'use cache' together in one component file?

    • @Delba
      @Delba  2 месяца назад

      Not in the same file, but you can either import them into 'use client' from a separate file with "use cache" at the top, or pass them down through props from a Server Component.

    • @zocky3282
      @zocky3282 2 месяца назад

      @Delba thanks, gotcha 🙌

  • @raves_r3177
    @raves_r3177 Месяц назад

    cachetag and cachelife? isnt this just like react query with its querykey and queryoptions?

    • @Delba
      @Delba  Месяц назад

      Similar ideas of tagging a cache entry and setting a lifetime, but slightly different since RQ focuses on the client (and is very good at it) but this controls the cache across the client and server.

  • @khoachau4997
    @khoachau4997 2 месяца назад +1

    If 'use cache' is to tell Next.js that this should be cached, why do we still need Suspense to tell that this part is dynamic. Shouldn't it be automatically dynamic?

    • @mugundansridhar3835
      @mugundansridhar3835 2 месяца назад +1

      I guess to specify the components which depend on the cached data. If something doesn't reside within the Suspense boundary, it would be static. And wouldn't make any sense to cache something which is static.

    • @Delba
      @Delba  2 месяца назад

      Since worlds can be interleaved via props, you need a way to "go back" to the other world.
      Also, Suspense provides a place to pass in your fallback UI.

  • @Raghunadh9
    @Raghunadh9 2 месяца назад

    when will be "use cash" available please reply

    • @Delba
      @Delba  2 месяца назад +1

      No dates yet, but it's a high priority.

  • @howuseehim
    @howuseehim Месяц назад

    Can you teach me how you edit your videos?

  • @beluga_0007
    @beluga_0007 2 месяца назад

    could you share your theme?

    • @Delba
      @Delba  2 месяца назад

      Vitesse

  • @ROYALNIL_SITE
    @ROYALNIL_SITE 2 месяца назад

    nice

  • @maheraladdin3561
    @maheraladdin3561 2 месяца назад

    I think this means we don't need tanstack react query any more with next.js

    • @Delba
      @Delba  2 месяца назад

      You might still want RQ if you use case is heavily client-side orientated.

  • @dopetag
    @dopetag 2 месяца назад

    They are finally fixing Next

  • @devhims
    @devhims 2 месяца назад

    Is it released yet or still in canary?

    • @Delba
      @Delba  2 месяца назад +1

      It's still in canary.

  • @kenshinhimura3140
    @kenshinhimura3140 Месяц назад

    Angelical voice 😮

  • @whoami_parrot
    @whoami_parrot Месяц назад

    Fireship got me here.

  • @mike-2342
    @mike-2342 2 месяца назад

    W delba

  • @PanicAtProduction
    @PanicAtProduction 2 месяца назад

    Ok, next.js has some react-query features now.

    • @upsxace
      @upsxace 2 месяца назад

      react-query doesn't cache whole routes, use cache kinda does

  • @ignacioarriagadairiarte4338
    @ignacioarriagadairiarte4338 9 дней назад

    theme name pls :B

  • @cm3462
    @cm3462 Месяц назад +1

    100 seconds huh? hmm...sounds familiar >:(

  • @talhaanwar1005
    @talhaanwar1005 Месяц назад

    fireship know you stole his trademark in his latest video😂😂

    • @N0Xa880iUL
      @N0Xa880iUL Месяц назад +1

      It was a joke

    • @talhaanwar1005
      @talhaanwar1005 Месяц назад

      @@N0Xa880iUL I know as well and do you think i am serious?😂😂

  • @edhahaz
    @edhahaz 2 месяца назад

    'use prefetching'

  • @habong17359
    @habong17359 2 месяца назад +4

    then proceeds to upload another video next week - "The real future of Next.js"
    month later - "The legitimate future of Next.js"
    two months later - "Complete new future of Next.js"
    nothing against the presenter, Delba is an awesome advocate. But man, vercel you gotta stop making these "breaking" major changes every month and focus on buildling solid solution that can carry out long term.

    • @statuschannel8572
      @statuschannel8572 2 месяца назад +2

      this is the reason why i haven't migrated from Next12. everything feels temporary!

    • @Delba
      @Delba  2 месяца назад

      "focus on buildling solid solution". I agree, that is the spirit of these changes. Software evolves from feedback from users and lesson learned. You don't arrive at the perfect solution in a vacuum.

    • @habong17359
      @habong17359 2 месяца назад

      @@Delba Agreed 👍 and you do an awesome job on giving updates and teaching these new changes based on feedbacks. We really appreciate :)
      and still, the general consensus around the developers is that Next.js has too many, too often breaking changes and we are starting to grow tired (not this particular topic, but Next.js evolvement over past 2 years). And if you don't agree with this statement, then Vercel team is just tone-deaf.
      I'm probably missing many contexts as I'm not part of the vercel team and im sure team is doing an awesome job, but this is my take as a fan of Next.js and many others. just listen and hear them out on what real users of Next.js are saying these days.

  • @alexpeev9
    @alexpeev9 Месяц назад +2

    Seriously? Copying Fireship's title and style? That’s lazy and misleading. You’re just clogging search results and stealing views from the original creator. Do better.

  • @elvisbrevi
    @elvisbrevi 2 месяца назад

    Mobile?

    • @Delba
      @Delba  2 месяца назад

      Sorry, what?

  • @mustafahere01
    @mustafahere01 Месяц назад +1

    Why is Next.js becoming more complex with each new version update? Instead, you should focus on maintaining compatibility with previous versions, as many features get deprecated with each new release.

    • @Delba
      @Delba  Месяц назад

      These changes are designed to be simpler. They are iterated on after feedback from the community and lessons learned. We rarely deprecate APIs (there have been no major deprecatations in version 13, 14 or 15) instead we provide refined APIs and allow the community to migrate at their own pace.

  • @everythingisfine9988
    @everythingisfine9988 2 месяца назад +1

    Tanstack Start can't come fast enough 🙏

  • @deckbietcaijhet
    @deckbietcaijhet 2 месяца назад +1

    React query bts

  • @ChasquiSoy
    @ChasquiSoy Месяц назад

    Fireship has the eye on you. Stay safe queen. Kisses and Hugs

  • @pranavm002
    @pranavm002 2 месяца назад +1

    Future Fireship video stolen in 100 secs.
    Just kidding!

  • @fra4897
    @fra4897 Месяц назад

    idk rick

  • @ransomecode
    @ransomecode 2 месяца назад

    Future of JavaScript:
    ```
    "use strict"; "use cache"; "use types"; "use server"; "use ai" //....
    ```
    💀

  • @MoinKhan-po5ye
    @MoinKhan-po5ye 2 месяца назад +1

    Your voice is very beautiful can you bring the full course of Next .js (3hours)

  • @gopuadks
    @gopuadks 2 месяца назад +1

    1:54 that's not it, that's pretty confusing.

    • @codefinity
      @codefinity 2 месяца назад +2

      Almost anything is, until it's put into practice and studied.

    • @gopuadks
      @gopuadks 2 месяца назад

      ​@@codefinitythis cachelife cachetag ia here, use cache what happened to fetch "next" options, old ways

    • @Delba
      @Delba  2 месяца назад +2

      In most cases, you'd use a built in profile like `cacheLife('minutes')`. Passing an inline config will be rare, but it's there for ultimate control.

    • @codefinity
      @codefinity 2 месяца назад

      @@Delba 👍🏾 Granularity.

    • @Luisllaboj19
      @Luisllaboj19 2 месяца назад

      @@Delba how many seconds do “seconds” mean. Same with minutes and days, is it arbitrary or opinionated?

  • @Zephury
    @Zephury Месяц назад

    I've kinda hyped myself up, because I'm always the guy that has to go in and explain caching in NextJS to people. I solve caching and optimization issues all the time. You're gonna make me irrelevant. You're making it too easy.

  • @ts8960
    @ts8960 2 месяца назад

    I hate the "suspense" thing. It's much easier to know what's going on with ternary operator. The suspense behavior is unpredictable and feels "magic", and also ups the learning curve

    • @gabrielbianchi2246
      @gabrielbianchi2246 2 месяца назад

      You can’t use ternaries in server components as they run once

    • @Delba
      @Delba  2 месяца назад

      There are many benefits to its design besides simple branching. More here: react.dev/reference/react/Suspense

  • @DreamPuller-cf6yl
    @DreamPuller-cf6yl 2 месяца назад

    Are you ai character?

    • @Delba
      @Delba  2 месяца назад

      Yes.