Nuxt/test/fixtures/basic/composables/keep-alive.ts

7 lines
280 B
TypeScript
Raw Permalink Normal View History

2024-04-23 12:53:11 +00:00
export function useLifecycleLogs (name: string) {
onMounted(() => console.log(`${name}: onMounted`))
onUnmounted(() => console.log(`${name}: onUnmounted`))
onActivated(() => console.log(`${name}: onActivated`))
onDeactivated(() => console.log(`${name}: onDeactivated`))
}