Skip to content

Commit

Permalink
feat: Add storeToRefs to the auto imports in @pinia/nuxt #1876 (#2427)
Browse files Browse the repository at this point in the history
Co-authored-by: Eduardo San Martin Morote <posva@users.noreply.github.com>
Co-authored-by: Eduardo San Martin Morote <posva13@gmail.com>
  • Loading branch information
3 people authored Oct 16, 2023
1 parent dd90708 commit f19f368
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/nuxt/src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit f19f368

Please sign in to comment.