From 6599c5f5bf91e8bbcadeeca748b3a29d7f979aaf Mon Sep 17 00:00:00 2001 From: Andrew Bastin Date: Sun, 8 Aug 2021 12:39:02 +0530 Subject: [PATCH] feat: introduce useNuxt composable --- helpers/utils/composables.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/helpers/utils/composables.ts b/helpers/utils/composables.ts index 7dad49e91..d2aed799d 100644 --- a/helpers/utils/composables.ts +++ b/helpers/utils/composables.ts @@ -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( stream$: Observable, initialValue: T