@dxos/app-toolkit - v0.16.0
Preparing search index...
AppNode
createFactory
Function createFactory
createFactory
<
T
>
(
create
:
(
key
:
string
)
=>
T
)
:
(
key
:
string
)
=>
T
Creates a string-keyed memoized factory. Returns the same instance for the same key.
Type Parameters
T
Parameters
create
:
(
key
:
string
)
=>
T
Returns
(
key
:
string
)
=>
T
createFactory
<
TArgs
extends
any
[]
,
T
>
(
create
:
(
...
args
:
TArgs
)
=>
T
,
keyFn
:
(
...
args
:
TArgs
)
=>
string
,
)
:
(
...
args
:
TArgs
)
=>
T
Creates a string-keyed memoized factory. Returns the same instance for the same key.
Type Parameters
TArgs
extends
any
[]
T
Parameters
create
:
(
...
args
:
TArgs
)
=>
T
keyFn
:
(
...
args
:
TArgs
)
=>
string
Returns
(
...
args
:
TArgs
)
=>
T
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
@dxos/app-toolkit - v0.16.0
Loading...
Creates a string-keyed memoized factory. Returns the same instance for the same key.