feat: introduce useNuxt composable

This commit is contained in:
Andrew Bastin
2021-08-08 12:39:02 +05:30
parent 13f6e5ff43
commit 6599c5f5bf

View File

@@ -6,9 +6,12 @@ import {
Ref,
ref,
watch,
wrapProperty,
} from "@nuxtjs/composition-api"
import { Observable, Subscription } from "rxjs"
export const useNuxt = wrapProperty("$nuxt")
export function useReadonlyStream<T>(
stream$: Observable<T>,
initialValue: T