Backstage
Docs
Github
Preparing search index...
@backstage/plugin-notifications
index
useNotificationsApi
Function useNotificationsApi
useNotificationsApi
<
T
>
(
f
:
(
api
:
NotificationsApi
)
=>
Promise
<
T
>
,
deps
?:
any
[]
,
)
:
|
{
error
?:
undefined
;
loading
:
boolean
;
retry
:
()
=>
void
;
value
?:
undefined
;
}
|
{
error
:
Error
;
loading
:
false
;
retry
:
()
=>
void
;
value
?:
undefined
}
|
{
error
?:
Error
;
loading
:
true
;
retry
:
()
=>
void
;
value
?:
T
}
|
{
error
?:
undefined
;
loading
:
false
;
retry
:
()
=>
void
;
value
:
T
}
Type Parameters
T
Parameters
f
:
(
api
:
NotificationsApi
)
=>
Promise
<
T
>
deps
:
any
[]
= []
Returns
|
{
error
?:
undefined
;
loading
:
boolean
;
retry
:
()
=>
void
;
value
?:
undefined
;
}
|
{
error
:
Error
;
loading
:
false
;
retry
:
()
=>
void
;
value
?:
undefined
}
|
{
error
?:
Error
;
loading
:
true
;
retry
:
()
=>
void
;
value
?:
T
}
|
{
error
?:
undefined
;
loading
:
false
;
retry
:
()
=>
void
;
value
:
T
}
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Docs
Github
Backstage
Loading...