Liu Song’s Projects


~/Projects/hoppscotch

git clone https://code.lsong.org/hoppscotch

Commit

Commit
6599c5f5bf91e8bbcadeeca748b3a29d7f979aaf
Author
Andrew Bastin <[email protected]>
Date
2021-08-08 12:39:02 +0530 +0530
Diffstat
 helpers/utils/composables.ts | 3 +++

feat: introduce useNuxt composable


diff --git a/helpers/utils/composables.ts b/helpers/utils/composables.ts
index 7dad49e918ef9d34c5ce3a994485abea7ce2ac36..d2aed799d5895fb90af65be46f6c8e94195dfd5a 100644
--- a/helpers/utils/composables.ts
+++ b/helpers/utils/composables.ts
@@ -6,8 +6,11 @@   readonly,
   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>,