Skip to content

tryOnMounted ​

Category
Last Changed
2025-08-01

Safe onMounted. Call onMounted() if it's inside a component lifecycle, if not, just call the function

Usage ​

ts
import { tryOnMounted } from 'comuse-core'

tryOnMounted(() => {

})

Source ​

Source • Docs

Changelog ​

No recent changes

Released under the MIT License.