Reference
Describes the different exports and their related types.
All the types can be found here.
📄️ createLoader()
Creates a Loader.
📄️ useCreateQuery()
Lets you use any function that returns a promise to load your component.
📄️ withLoader()
Wraps a component and provides it with a given Loader's data. Renders the appropriate load/fetch/error states of the loader, and finally the given component when data is loaded successfully.
📄️ <AwaitLoader />
New in version 1.0.4
📄️ InferLoaderData<>
Returns the return type of a given Loader:
📄️ ConsumerProps<>
Helper for typing your expected consumer props for the loader.
📄️ aggregateToQuery()
Aggregates a set of UseQueryResult into a single query.