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 - Наука
I’m SO here for all the tangents! 😅
This answered so many questions for me. Can't wait for the next one.
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!
I really enjoy Ryan judging the movies 😂
I love remix
Nice video
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?!
Damn. Dark mode Ryan.
Cheers Ryan, How would you go about clearing cache ?
cool stuff
Does this work with the Vite compiler? In my case cache is only defined at the server loader
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.
It this cache work between multiple tab for the same user ?
Can you accomplish the same using cache-control headers?
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"?
Awesome feature!
This really begs for an infinite list example! How would that work?
Please make a video about deleting, updating using optimistic behaviour
Would be great to have some examples with Hydrogen. Not only Remix.
where does "let cache" live? in client?
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
"The hiccups man" 😆
What Vscode theme and font is that
github theme
should have said its for remix V2... could have saved me some time
where is the videos of trellix😮
ruclips.net/p/PLXoynULbYuED9b2k5LS44v9TQjfXifwNu
twilight devs please cancel this
All your kids have a friend named 'cache'. Are you sure they're the same kid?
Dunno, it's hard to invalidate!