Skip to main content
Version: 2.0.0-alpha

Function: useFireCMSContext

useFireCMSContext<UserType, AuthControllerType>(): FireCMSContext<UserType, AuthControllerType>

Hook to retrieve the FireCMSContext.

Consider that in order to use this hook you need to have a parent FireCMS component.

See

FireCMSContext

Type parameters

NameType
UserTypeextends User = User
AuthControllerTypeextends AuthController<UserType> = AuthController<UserType>

Returns

FireCMSContext<UserType, AuthControllerType>

Defined in

lib/src/hooks/useFireCMSContext.tsx:14

Need a hand?

We are happy to offer consulting services to help you get the most out of FireCMS.
Get in touch