React suspense is a thing in react which will allow you to suspend sort of pause a component while that component is doing something like fetching data. So basically the basics are you have essentially your normal component, right? It's a Function it's a component and we're used to doing our way of using a a promise where you'd have a use effect That would fetch data from an API or load from a database or something like that. The idea is that you can suspend that component you give it a like ah suspend this for two seconds And if you don't have your data by then then then throw a loader in there and that will show your actual instead of nothing.

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