@univerjs/core v0.5.0-beta.1 • Docs
Function: useObservable()
useObservable(observable)
function useObservable<T>(observable): T | undefined
Type Parameters
Type Parameter |
---|
T |
Parameters
Parameter | Type |
---|---|
observable | Nullable <ObservableOrFn <T >> |
Returns
T
| undefined
Defined in
packages/api/tmp/univer-pro/node_modules/.pnpm/@wendellhu+redi@0.16.1/node_modules/@wendellhu/redi/esm/react-bindings/reactRx.d.ts:18
useObservable(observable, defaultValue)
function useObservable<T>(observable, defaultValue): T
Type Parameters
Type Parameter |
---|
T |
Parameters
Parameter | Type |
---|---|
observable | Nullable <ObservableOrFn <T >> |
defaultValue | T |
Returns
T
Defined in
packages/api/tmp/univer-pro/node_modules/.pnpm/@wendellhu+redi@0.16.1/node_modules/@wendellhu/redi/esm/react-bindings/reactRx.d.ts:19
useObservable(observable, defaultValue, shouldHaveSyncValue, deps)
function useObservable<T>(
observable,
defaultValue,
shouldHaveSyncValue,
deps?): T
Type Parameters
Type Parameter |
---|
T |
Parameters
Parameter | Type |
---|---|
observable | Nullable <ObservableOrFn <T >> |
defaultValue | undefined |
shouldHaveSyncValue | true |
deps ? | any [] |
Returns
T
Defined in
packages/api/tmp/univer-pro/node_modules/.pnpm/@wendellhu+redi@0.16.1/node_modules/@wendellhu/redi/esm/react-bindings/reactRx.d.ts:20
useObservable(observable, defaultValue, shouldHaveSyncValue, deps)
function useObservable<T>(
observable,
defaultValue?,
shouldHaveSyncValue?,
deps?): T | undefined
Type Parameters
Type Parameter |
---|
T |
Parameters
Parameter | Type |
---|---|
observable | Nullable <ObservableOrFn <T >> |
defaultValue ? | undefined |
shouldHaveSyncValue ? | true |
deps ? | any [] |
Returns
T
| undefined
Defined in
packages/api/tmp/univer-pro/node_modules/.pnpm/@wendellhu+redi@0.16.1/node_modules/@wendellhu/redi/esm/react-bindings/reactRx.d.ts:21