Caching Data in Memory with Remix Client Loaders

Поделиться
HTML-код
  • Опубликовано: 4 авг 2024
  • Learn how to improve your user's experience and websites performance by caching data in memory on the client using clientLoader
    Play with this demo 👉 remix-movies.pages.dev/
    Checkout the code 👉 github.com/remix-run/example-...
    00:00 - Problem explained
    01:21 - Setting up a clientLoader
    02:44 - Adding a client-side cache
    05:54 - Bug with the initial request
    06:40 - Enabling clientLoader during hydration
    08:10 - Improved experience with a client cache
    Learn more at remix.run
  • НаукаНаука

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

  • @HerrSiering
    @HerrSiering 6 месяцев назад +19

    I’m SO here for all the tangents! 😅

  • @dustincarr6665
    @dustincarr6665 6 месяцев назад

    This answered so many questions for me. Can't wait for the next one.

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

    Ryan this whole series is great! I like how its general problems, but I can see how I would use this in a variety of places. Even interesting to see your coding style :) Thanks!

  •  6 месяцев назад +1

    I really enjoy Ryan judging the movies 😂

  • @codewithnws3544
    @codewithnws3544 6 месяцев назад +4

    I love remix

  • @omarcardenas3728
    @omarcardenas3728 6 месяцев назад +1

    Nice video

  • @adiadiadi
    @adiadiadi 6 месяцев назад +3

    I couldn't figure out how to debug Remix with Chrome as it abstracts away access to the node binary and hence ignores the --inspect flags. But I notice you have debugging enabled. How did you do it?!

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

    Damn. Dark mode Ryan.

  • @JamesCoates-yl7le
    @JamesCoates-yl7le 6 месяцев назад +1

    Cheers Ryan, How would you go about clearing cache ?

  • @TEMISsX
    @TEMISsX 6 месяцев назад

    cool stuff

  • @user-iu6iw8en8h
    @user-iu6iw8en8h 4 месяца назад

    Does this work with the Vite compiler? In my case cache is only defined at the server loader

  • @FzsHotDogInDonut
    @FzsHotDogInDonut 6 месяцев назад

    I know this is out of scope topic. But I need help, I was trying to build a rich text editor with plate js. I only found one video talking about it. But they use js so it worked. But as I was using ts after installing everything it gave an error. code: 'ERR_IMPORT_ASSERTION_TYPE_MISSING' ( post code #2884, if you can please view this discussion). I can't figure out how to remove this. As this is in the node module.

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

    It this cache work between multiple tab for the same user ?

  • @brianmwangi6599
    @brianmwangi6599 6 месяцев назад

    Can you accomplish the same using cache-control headers?

  • @RogerStudner
    @RogerStudner 4 месяца назад

    I know this meant to be a simple example - but what if a child route updated some server state -- how could one "clear or invalidate this cache"?

  • @everdimension
    @everdimension 6 месяцев назад

    Awesome feature!
    This really begs for an infinite list example! How would that work?

  • @rushikeshbelkunde9533
    @rushikeshbelkunde9533 6 месяцев назад

    Please make a video about deleting, updating using optimistic behaviour

  • @user-ut4uk9mm8c
    @user-ut4uk9mm8c 6 месяцев назад

    Would be great to have some examples with Hydrogen. Not only Remix.

  • @nhieljeff2156
    @nhieljeff2156 6 месяцев назад +1

    where does "let cache" live? in client?

    • @nadico5740
      @nadico5740 6 месяцев назад +1

      Seems like its client side because there are no further requests to the server,
      Is the cache available for both the client and the server? maybe, I also want to know

  • @DrewLytle
    @DrewLytle 6 месяцев назад

    "The hiccups man" 😆

  • @Akshaythakur17
    @Akshaythakur17 6 месяцев назад

    What Vscode theme and font is that

  • @user-ks5to4bo3l
    @user-ks5to4bo3l 6 месяцев назад

    should have said its for remix V2... could have saved me some time

  • @ray-lee
    @ray-lee 6 месяцев назад

    where is the videos of trellix😮

    • @Remix-Run
      @Remix-Run  6 месяцев назад

      ruclips.net/p/PLXoynULbYuED9b2k5LS44v9TQjfXifwNu

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

    twilight devs please cancel this

  • @sambeauJonez
    @sambeauJonez 6 месяцев назад

    All your kids have a friend named 'cache'. Are you sure they're the same kid?

    • @RyanFlorence
      @RyanFlorence 5 месяцев назад

      Dunno, it's hard to invalidate!