Hex Core JS
Preparing search index...
App Modules
useGraphQLToasts
Function useGraphQLToasts
useGraphQLToasts
(
__namedParameters
?:
UseGraphQLToastsArgs
,
)
:
{
addErrorToast
:
(
errorProps
:
Pick
<
ErrorToastProps
,
"errors"
>
)
=>
void
;
addSuccessToast
:
()
=>
void
;
removeLastToast
:
()
=>
void
;
}
Provides handling for using pre-defined toast types in response to GraphQL API events.
Parameters
__namedParameters
:
UseGraphQLToastsArgs
= {}
Returns
{
addErrorToast
:
(
errorProps
:
Pick
<
ErrorToastProps
,
"errors"
>
)
=>
void
;
addSuccessToast
:
()
=>
void
;
removeLastToast
:
()
=>
void
;
}
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Hex Core JS
Loading...
Provides handling for using pre-defined toast types in response to GraphQL API events.