📄 tryOnScopeDispose¶
📊 Analysis Summary¶
| Metric | Count |
|---|---|
| 🔧 Functions | 1 |
| 📦 Imports | 3 |
📚 Table of Contents¶
🛠️ File Location:¶
📂 packages/shared/tryOnScopeDispose/index.ts
📦 Imports¶
| Name | Source |
|---|---|
Fn |
../utils |
getCurrentScope |
vue |
onScopeDispose |
vue |
Functions¶
tryOnScopeDispose(fn: Fn, failSilently: boolean): boolean¶
Call onScopeDispose() if it's inside an effect scope lifecycle, if not, do nothing
Parameters:
fnany: No description
Raw JSDoc
Calls:
getCurrentScope (from vue)onScopeDispose (from vue)
Code
Generated by Syntax Scribe