Skip to main content
Version: 2.0.0-beta

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:34

Enterprise?

Learn how to get the most out of your project with the help of our consulting team.
Get in touch
Sign up to our newsletter to get the latest news and updates. No spam!