Applesauce
Preparing search index...
applesauce-react
Hooks
useAction
Function useAction
useAction
<
Args
extends
any
[]
>
(
Action
:
ActionBuilder
<
Args
>
,
)
:
UseActionResult
<
Args
>
A hook to run an action inside the
ActionsProvider
Type Parameters
Args
extends
any
[]
Parameters
Action
:
ActionBuilder
<
Args
>
Returns
UseActionResult
<
Args
>
useAction
<
Args
extends
any
[]
>
(
Action
:
ActionBuilder
<
Args
>
,
args
:
Args
|
undefined
,
)
:
UseActionResult
<
Args
>
A hook to run an action inside the
ActionsProvider
Type Parameters
Args
extends
any
[]
Parameters
Action
:
ActionBuilder
<
Args
>
args
:
Args
|
undefined
Returns
UseActionResult
<
Args
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Applesauce
Loading...
A hook to run an action inside the ActionsProvider