Function: useLocalStore()
See
https://mobx.js.org/react-integration.html
Call Signature
ts
function useLocalStore<TStore>(initializer: () => TStore): TStore;Defined in: mobx-react-lite:
Type Parameters
| Type Parameter |
|---|
TStore extends Record<string, any> |
Parameters
| Parameter | Type |
|---|---|
initializer | () => TStore |
Returns
TStore
Call Signature
ts
function useLocalStore<TStore, TSource>(initializer: (source: TSource) => TStore, current: TSource): TStore;Defined in: mobx-react-lite:
Type Parameters
| Type Parameter |
|---|
TStore extends Record<string, any> |
TSource extends object |
Parameters
| Parameter | Type |
|---|---|
initializer | (source: TSource) => TStore |
current | TSource |
Returns
TStore