AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
Quick City Streaming - What Are the Loaders?
Quick City has two methods. We call loaders and actions. You can think of the loader as getting data to the client, and you can think of action as getting data from the client to the server. And these loaders are kicked off immediately as soon as the request comes in. These loaders can return either a promise or a function that returns the promise. If they return a promise directly, then we will make sure we will wait for the data to be resolved before we start rendering your application. But if we return a function that is a promise, then we know that like, oh, we can start rendering the application even before that promise is resolved. Now we can have out