feat: introduce useNuxt composable
This commit is contained in:
@@ -6,9 +6,12 @@ import {
|
|||||||
Ref,
|
Ref,
|
||||||
ref,
|
ref,
|
||||||
watch,
|
watch,
|
||||||
|
wrapProperty,
|
||||||
} from "@nuxtjs/composition-api"
|
} from "@nuxtjs/composition-api"
|
||||||
import { Observable, Subscription } from "rxjs"
|
import { Observable, Subscription } from "rxjs"
|
||||||
|
|
||||||
|
export const useNuxt = wrapProperty("$nuxt")
|
||||||
|
|
||||||
export function useReadonlyStream<T>(
|
export function useReadonlyStream<T>(
|
||||||
stream$: Observable<T>,
|
stream$: Observable<T>,
|
||||||
initialValue: T
|
initialValue: T
|
||||||
|
|||||||
Reference in New Issue
Block a user