mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 05:35:13 +00:00
fix(nuxt): export and auto-import clearNuxtData
(#7710)
This commit is contained in:
parent
9c9e20ee14
commit
a9a8571e35
@ -1,5 +1,5 @@
|
||||
export { defineNuxtComponent } from './component'
|
||||
export { useAsyncData, useLazyAsyncData, refreshNuxtData } from './asyncData'
|
||||
export { useAsyncData, useLazyAsyncData, refreshNuxtData, clearNuxtData } from './asyncData'
|
||||
export type { AsyncDataOptions, AsyncData } from './asyncData'
|
||||
export { useHydration } from './hydrate'
|
||||
export { useState } from './state'
|
||||
|
@ -25,6 +25,7 @@ const appPreset = defineUnimportPreset({
|
||||
'useAsyncData',
|
||||
'useLazyAsyncData',
|
||||
'refreshNuxtData',
|
||||
'clearNuxtData',
|
||||
'defineNuxtComponent',
|
||||
'useNuxtApp',
|
||||
'defineNuxtPlugin',
|
||||
|
@ -69,7 +69,10 @@ describe('imports:nuxt', () => {
|
||||
})
|
||||
}
|
||||
} catch (e) {
|
||||
console.log(e)
|
||||
it('should import composables', () => {
|
||||
console.log(e)
|
||||
expect(false).toBe(true)
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user