mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-18 09:25:54 +00:00
fix(nuxt3): import computed from vue
to preserve reactivity (#2352)
This commit is contained in:
parent
a5d5067771
commit
2cf8c45823
@ -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'
|
||||||
|
@ -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'
|
||||||
|
Loading…
Reference in New Issue
Block a user