📄 useExtractedObservable¶
📊 Analysis Summary¶
| Metric | Count |
|---|---|
| 🔧 Functions | 4 |
| 📦 Imports | 14 |
| 🟢 Vue Composition API | 1 |
| 📐 Interfaces | 1 |
📚 Table of Contents¶
🛠️ File Location:¶
📂 packages/rxjs/useExtractedObservable/index.ts
📦 Imports¶
| Name | Source |
|---|---|
MapOldSources |
@vueuse/shared |
MapSources |
@vueuse/shared |
Subscription |
rxjs |
DeepReadonly |
vue |
MultiWatchSources |
vue |
ShallowRef |
vue |
WatchOptions |
vue |
WatchSource |
vue |
UseObservableOptions |
../useObservable |
WatchExtractedObservableCallback |
../watchExtractedObservable |
tryOnScopeDispose |
@vueuse/shared |
deepReadonly |
vue |
shallowRef |
vue |
watch |
vue |
Vue Composition API¶
| Name | Type | Reactive Variables | Composables |
|---|---|---|---|
watch |
watch | none | none |
Functions¶
useExtractedObservable(…): DeepReadonly<ShallowRef<E>>¶
Parameters:
sources[...T]extractor`WatchExtractedObservableCallback< MapSources, MapOldSources , E `
optionsUseExtractedObservableOptions<E>watchOptionsWatchOptions<Immediate>
Returns: DeepReadonly<ShallowRef<E>>
Code
export function useExtractedObservable<
T extends MultiWatchSources,
E,
Immediate extends Readonly<boolean> = false,
>(
sources: [...T],
extractor: WatchExtractedObservableCallback<
MapSources<T>,
MapOldSources<T, Immediate>,
E
>,
options?: UseExtractedObservableOptions<E>,
watchOptions?: WatchOptions<Immediate>,
): DeepReadonly<ShallowRef<E>>
Internal helpers¶
Declared inside another function in this file.
error(err: any): void¶
Parameters:
errany
Returns: void
Calls:
options?.onError
complete(): void¶
Returns: void
Calls:
options?.onComplete
next(val: any): void¶
Parameters:
valany
Returns: void
Interfaces¶
UseExtractedObservableOptions<E>¶
Interface Code
Properties¶
| Name | Type | Optional | Description |
|---|---|---|---|
onComplete |
() => void |
✓ | not shown |
Generated by Syntax Scribe