useStore

函数:useStore()

调用签名

ts
function useStore<TState, TSelected>(store, selector?): Accessor<TSelected>
function useStore<TState, TSelected>(store, selector?): Accessor<TSelected>

定义在:index.tsx:13

类型参数

TState

TSelected = NoInfer<TState>

参数

store

Store<TState, any>

selector?

(state) => TSelected

返回值

Accessor<TSelected>

调用签名

ts
function useStore<TState, TSelected>(store, selector?): Accessor<TSelected>
function useStore<TState, TSelected>(store, selector?): Accessor<TSelected>

定义在:index.tsx:17

类型参数

TState

TSelected = NoInfer<TState>

参数

store

Derived<TState, any>

selector?

(state) => TSelected

返回值

Accessor<TSelected>

订阅 Bytes

您的每周 JavaScript 新闻速递。每周一免费发送给超过 10 万名开发者。

Bytes

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