injectStore

函数: injectStore()

调用签名

ts
function injectStore<TState, TSelected>(
   store, 
   selector?, 
options?): Signal<TSelected>
function injectStore<TState, TSelected>(
   store, 
   selector?, 
options?): Signal<TSelected>

定义于: index.ts:19

类型参数

TState

TSelected = NoInfer<TState>

参数

store

Store<TState, any>

选择器?

(state) => TSelected

options?

CreateSignalOptions<TSelected> & object

Returns (返回)

Signal<TSelected>

调用签名

ts
function injectStore<TState, TSelected>(
   store, 
   selector?, 
options?): Signal<TSelected>
function injectStore<TState, TSelected>(
   store, 
   selector?, 
options?): Signal<TSelected>

定义于: index.ts:24

类型参数

TState

TSelected = NoInfer<TState>

参数

store

Derived<TState, any>

选择器?

(state) => TSelected

options?

CreateSignalOptions<TSelected> & object

Returns (返回)

Signal<TSelected>

我们的合作伙伴
Code Rabbit
订阅 Bytes

您的每周 JavaScript 资讯。每周一免费发送给超过 10 万开发者。

Bytes

无垃圾邮件。您可以随时取消订阅。

订阅 Bytes

您的每周 JavaScript 资讯。每周一免费发送给超过 10 万开发者。

Bytes

无垃圾邮件。您可以随时取消订阅。