Preparing search index...
The search index is not available
@unologin/next
@unologin/next
react
withState
Function withState
with
State
<
Fn
,
State
>
(
fn
:
Fn
, state
:
State
)
:
CallbackWithState
<
Fn
,
State
>
Create a function with an attached state object.
Returns
CallbackWithState
Type Parameters
Fn
extends
(
(
...
args
:
any
[]
)
=>
any
)
State
extends
object
Parameters
fn:
Fn
fn
state:
State
state
Returns
CallbackWithState
<
Fn
,
State
>
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
Modules
@unologin/next
quick
react
server
Callback
With
State
Client
Session
Context
Value
Client
Session
Provider
use
Client
Session
use
Login
use
Logout
use
Refresh
with
Loading
State
with
State
Generated using
TypeDoc
Create a function with an attached state object.
Returns
CallbackWithState