3min chapter

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

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode