useFireCMSContext
Get the context that includes the internal controllers and contexts used by the app. Some controllers and context included in this context can be accessed directly from their respective hooks.
The props provided by this hook are:
-
dateTimeFormat
?: Format of the dates in the CMS. Defaults to 'MMMM dd, yyyy, HH:mm:ss' -
locale
?: Locale of the CMS, currently only affecting dates -
dataSource
:Connector to your database, e.g. your Firestore database -
storageSource
: Used storage implementation -
schemaRegistryController
: This controller is in charge of resolving the entity schemas from a given path. It takes into account thenavigation
prop set in the main level of the CMSApp as well as theschemaResolver
in case you want to override schemas to specific entities. -
navigation
: Context that includes the resolved navigation and utility methods and attributes. -
sideEntityController
: Controller to open the side dialog displaying entity forms -
authController
: Used auth controller -
entityLinkBuilder
?: Builder for generating utility links for entities -
userConfigPersistence
: Use this controller to access data stored in the browser for the user -
snackbarController
: Use this controller to display snackbars