@logixjs/core
Preparing search index...
ExternalStore
fromSubscriptionRef
Function fromSubscriptionRef
fromSubscriptionRef
<
T
>
(
ref
:
SubscriptionRef
<
T
>
)
:
ExternalStore
.
ExternalStore
<
T
>
Create an ExternalStore from a SubscriptionRef.
Notes:
getSnapshot()
is implemented via
SubscriptionRef.get(ref)
(must be a synchronous pure read; do not hide IO inside).
change notifications are batched via microtask (multiple updates in the same microtask trigger a single notify).
Type Parameters
T
Parameters
ref
:
SubscriptionRef
<
T
>
Returns
ExternalStore
.
ExternalStore
<
T
>
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
@logixjs/core
Loading...
Create an ExternalStore from a SubscriptionRef.
Notes:
getSnapshot()is implemented viaSubscriptionRef.get(ref)(must be a synchronous pure read; do not hide IO inside).