Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Commit

Permalink
fix(nuxt): export and auto-import clearNuxtData
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Sep 21, 2022
1 parent 9c9e20e commit b8ad8b9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/nuxt/src/app/composables/index.ts
@@ -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'
Expand Down
1 change: 1 addition & 0 deletions packages/nuxt/src/imports/presets.ts
Expand Up @@ -25,6 +25,7 @@ const appPreset = defineUnimportPreset({
'useAsyncData',
'useLazyAsyncData',
'refreshNuxtData',
'clearNuxtData',
'defineNuxtComponent',
'useNuxtApp',
'defineNuxtPlugin',
Expand Down
5 changes: 4 additions & 1 deletion packages/nuxt/test/auto-imports.test.ts
Expand Up @@ -69,7 +69,10 @@ describe('imports:nuxt', () => {
})
}
} catch (e) {
console.log(e)
it('should import composables', () => {
console.log(e)
expect(false).toBe(true)
})
}
})

Expand Down

0 comments on commit b8ad8b9

Please sign in to comment.