EntityCollectionsBuilder
@firecms/core / EntityCollectionsBuilder
Type Alias: EntityCollectionsBuilder()<EC>
Section titled “Type Alias: EntityCollectionsBuilder()<EC>”EntityCollectionsBuilder<
EC> = (params) =>EC[] |Promise<EC[]>
Defined in: types/firecms.tsx:28
Use this callback to build entity collections dynamically. You can use the user to decide which collections to show. You can also use the data source to fetch additional data to build the collections. Note: you can use any type of synchronous or asynchronous code here, including fetching data from external sources, like using the Firestore APIs directly, or a REST API.
Type Parameters
Section titled “Type Parameters”EC extends EntityCollection = EntityCollection
Parameters
Section titled “Parameters”params
Section titled “params”authController
Section titled “authController”dataSource
Section titled “dataSource”User | null
Returns
Section titled “Returns”EC[] | Promise<EC[]>