]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
feat: Add storeToRefs to the auto imports in @pinia/nuxt #1876 (#2427)
authorPouya Mohammadkhani <31730646+BlackCrowxyz@users.noreply.github.com>
Mon, 16 Oct 2023 09:49:00 +0000 (13:19 +0330)
committerGitHub <noreply@github.com>
Mon, 16 Oct 2023 09:49:00 +0000 (11:49 +0200)
Co-authored-by: Eduardo San Martin Morote <posva@users.noreply.github.com>
Co-authored-by: Eduardo San Martin Morote <posva13@gmail.com>
packages/nuxt/src/module.ts

index b373d4c4c5d2aa864bcb559b68149af7f211ebad..e72d0d24473eb02e1e6b880a3efa5e0ace0210a5 100644 (file)
@@ -89,6 +89,7 @@ const module: NuxtModule<ModuleOptions> = defineNuxtModule<ModuleOptions>({
       { from: composables, name: 'defineStore' },
       { from: composables, name: 'acceptHMRUpdate' },
       { from: composables, name: 'usePinia' },
+      { from: composables, name: 'storeToRefs' },
     ])
 
     if (!options.storesDirs) {