Attempts to register a mounted callback on the current component instance.
The callback to invoke when the component instance is mounted.
true if the callback was registered, false otherwise.
true
false
tryOnMounted(() => { console.log('Component mounted') }) Copy
tryOnMounted(() => { console.log('Component mounted') })
Attempts to register a mounted callback on the current component instance.