Modern Web cover image

Building the TanStack with Tanner Linsley

Modern Web

CHAPTER

React Loaders at 10.6 Slash

React Loaders is designed to work well with the router. But it's mostly just like a React query light. Right here, we're passing a max age of 500 or 5,000. We're going to hold onto it and cache it right into SWR style caching. After five seconds, it's going to become stale. And this function, if we took out this server, this would run on the client right here. This might look familiar if you've ever seen Solid Start.

00:00
Transcript
Play full episode

Remember Everything You Learn from Podcasts

Save insights instantly, chat with episodes, and build lasting knowledge - all powered by AI.
App store bannerPlay store banner