Skip to main content
Version: 2.0.0

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.

Type parameters

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

Returns

FireCMSContext<UserType, AuthControllerType>

See

FireCMSContext

Defined in

packages/firecms/src/hooks/useFireCMSContext.tsx:32

Enterprise or start-up?

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