mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-15 02:14:44 +00:00
7 lines
279 B
TypeScript
7 lines
279 B
TypeScript
|
export function useLifecyleLogs (name: string) {
|
||
|
onMounted(() => console.log(`${name}: onMounted`))
|
||
|
onUnmounted(() => console.log(`${name}: onUnmounted`))
|
||
|
onActivated(() => console.log(`${name}: onActivated`))
|
||
|
onDeactivated(() => console.log(`${name}: onDeactivated`))
|
||
|
}
|