mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 21:55:11 +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 { defineNuxtComponent } from './component'
|
||||||
export { useAsyncData, useLazyAsyncData, refreshNuxtData } from './asyncData'
|
export { useAsyncData, useLazyAsyncData, refreshNuxtData, clearNuxtData } from './asyncData'
|
||||||
export type { AsyncDataOptions, AsyncData } from './asyncData'
|
export type { AsyncDataOptions, AsyncData } from './asyncData'
|
||||||
export { useHydration } from './hydrate'
|
export { useHydration } from './hydrate'
|
||||||
export { useState } from './state'
|
export { useState } from './state'
|
||||||
|
@ -25,6 +25,7 @@ const appPreset = defineUnimportPreset({
|
|||||||
'useAsyncData',
|
'useAsyncData',
|
||||||
'useLazyAsyncData',
|
'useLazyAsyncData',
|
||||||
'refreshNuxtData',
|
'refreshNuxtData',
|
||||||
|
'clearNuxtData',
|
||||||
'defineNuxtComponent',
|
'defineNuxtComponent',
|
||||||
'useNuxtApp',
|
'useNuxtApp',
|
||||||
'defineNuxtPlugin',
|
'defineNuxtPlugin',
|
||||||
|
@ -69,7 +69,10 @@ describe('imports:nuxt', () => {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log(e)
|
it('should import composables', () => {
|
||||||
|
console.log(e)
|
||||||
|
expect(false).toBe(true)
|
||||||
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user