fix(nuxt3): import computed from vue to preserve reactivity (#2352)

This commit is contained in:
Daniel Roe 2021-12-14 13:29:57 +00:00 committed by GitHub
parent a5d5067771
commit 2cf8c45823
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View File

@ -1,5 +1,4 @@
import { toRefs } from '@vue/reactivity' import { defineComponent, getCurrentInstance, toRefs } from 'vue'
import { defineComponent, getCurrentInstance } from 'vue'
import type { DefineComponent } from 'vue' import type { DefineComponent } from 'vue'
import { useRoute } from 'vue-router' import { useRoute } from 'vue-router'
import type { LegacyContext } from '../compat/legacy-app' import type { LegacyContext } from '../compat/legacy-app'

View File

@ -1,5 +1,5 @@
import { isFunction } from '@vue/shared' import { isFunction } from '@vue/shared'
import { computed } from '@vue/reactivity' import { computed } from 'vue'
import type { ComputedGetter } from '@vue/reactivity' import type { ComputedGetter } from '@vue/reactivity'
import type { MetaObject } from '@nuxt/schema' import type { MetaObject } from '@nuxt/schema'
import { useNuxtApp } from '#app' import { useNuxtApp } from '#app'