@univerjs/ui v0.5.0-beta.1 • Docs
Function: useObservableRef()
function useObservableRef<T>(observable, defaultValue?): RefObject<Nullable<T>>
Type Parameters
Type Parameter |
---|
T |
Parameters
Parameter | Type |
---|---|
observable | Nullable <ObservableOrFn <T >> |
defaultValue ? | T |
Returns
RefObject
<Nullable
<T
>>
Defined in
submodules/univer/packages/ui/src/components/hooks/observable.ts:97