📄 tryOnBeforeMount¶
📊 Analysis Summary¶
| Metric | Count |
|---|---|
| 🔧 Functions | 1 |
| 📦 Imports | 5 |
📚 Table of Contents¶
🛠️ File Location:¶
📂 packages/shared/tryOnBeforeMount/index.ts
📦 Imports¶
| Name | Source |
|---|---|
ComponentInternalInstance |
vue |
Fn |
../utils |
nextTick |
vue |
onBeforeMount |
vue |
getLifeCycleTarget |
../utils |
Functions¶
tryOnBeforeMount(fn: Fn, sync: boolean, target: ComponentInternalInstance | null): void¶
Call onBeforeMount() if it's inside a component lifecycle, if not, just call the function
Parameters:
fnany: No descriptionsyncany: if set to false, it will run in the nextTick() of Vuetargetany: No description
Raw JSDoc
Calls:
getLifeCycleTarget (from ../utils)onBeforeMount (from vue)fnnextTick (from vue)
Code
Generated by Syntax Scribe