Skip to main content
Version: 2.0.0-beta

Function: useSnackbarController

useSnackbarController(): Object

Hook to retrieve the SnackbarContext.

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

See

SnackbarController

Returns

Object

NameType
close(key?: SnackbarKey) => void
open(props: { message: string ; type: SnackbarMessageType }) => void

Defined in

lib/src/hooks/useSnackbarController.tsx:41

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!