Files (268)
references/
LICENSE.mdSKILL.mdSYNC.mdcomputedAsync.mdcomputedEager.mdcomputedInject.mdcomputedWithControl.mdcreateEventHook.mdcreateGenericProjection.mdcreateGlobalState.mdcreateInjectionState.mdcreateProjection.mdcreateRef.mdcreateReusableTemplate.mdcreateSharedComposable.mdcreateTemplatePromise.mdcreateUnrefFn.mdextendRef.mdfrom.mdget.mdinjectLocal.mdisDefined.mdlogicAnd.mdlogicNot.mdlogicOr.mdmakeDestructurable.mdonClickOutside.mdonElementRemoval.mdonKeyStroke.mdonLongPress.mdonStartTyping.mdprovideLocal.mdreactify.mdreactifyObject.mdreactiveComputed.mdreactiveOmit.mdreactivePick.mdrefAutoReset.mdrefDebounced.mdrefDefault.mdrefManualReset.mdrefThrottled.mdrefWithControl.mdset.mdsyncRef.mdsyncRefs.mdtemplateRef.mdtoObserver.mdtoReactive.mdtoRef.mdtoRefs.mdtryOnBeforeMount.mdtryOnBeforeUnmount.mdtryOnMounted.mdtryOnScopeDispose.mdtryOnUnmounted.mdunrefElement.mduntil.mduseAbs.mduseActiveElement.mduseAnimate.mduseArrayDifference.mduseArrayEvery.mduseArrayFilter.mduseArrayFind.mduseArrayFindIndex.mduseArrayFindLast.mduseArrayIncludes.mduseArrayJoin.mduseArrayMap.mduseArrayReduce.mduseArraySome.mduseArrayUnique.mduseAsyncQueue.mduseAsyncState.mduseAsyncValidator.mduseAuth.mduseAverage.mduseAxios.mduseBase64.mduseBattery.mduseBluetooth.mduseBreakpoints.mduseBroadcastChannel.mduseBrowserLocation.mduseCached.mduseCeil.mduseChangeCase.mduseClamp.mduseClipboard.mduseClipboardItems.mduseCloned.mduseColorMode.mduseConfirmDialog.mduseCookies.mduseCountdown.mduseCounter.mduseCssSupports.mduseCssVar.mduseCurrentElement.mduseCycleList.mduseDark.mduseDateFormat.mduseDebouncedRefHistory.mduseDebounceFn.mduseDeviceMotion.mduseDeviceOrientation.mduseDevicePixelRatio.mduseDevicesList.mduseDisplayMedia.mduseDocumentVisibility.mduseDraggable.mduseDrauu.mduseDropZone.mduseElementBounding.mduseElementByPoint.mduseElementHover.mduseElementSize.mduseElementVisibility.mduseEventBus.mduseEventListener.mduseEventSource.mduseExtractedObservable.mduseEyeDropper.mduseFavicon.mduseFetch.mduseFileDialog.mduseFileSystemAccess.mduseFirestore.mduseFloor.mduseFocus.mduseFocusTrap.mduseFocusWithin.mduseFps.mduseFullscreen.mduseFuse.mduseGamepad.mduseGeolocation.mduseIDBKeyval.mduseIdle.mduseImage.mduseInfiniteScroll.mduseIntersectionObserver.mduseInterval.mduseIntervalFn.mduseIpcRenderer.mduseIpcRendererInvoke.mduseIpcRendererOn.mduseJwt.mduseKeyModifier.mduseLastChanged.mduseLocalStorage.mduseMagicKeys.mduseManualRefHistory.mduseMath.mduseMax.mduseMediaControls.mduseMediaQuery.mduseMemoize.mduseMemory.mduseMin.mduseMounted.mduseMouse.mduseMouseInElement.mduseMousePressed.mduseMutationObserver.mduseNavigatorLanguage.mduseNetwork.mduseNow.mduseNProgress.mduseObjectUrl.mduseObservable.mduseOffsetPagination.mduseOnline.mdusePageLeave.mduseParallax.mduseParentElement.mdusePerformanceObserver.mdusePermission.mdusePointer.mdusePointerLock.mdusePointerSwipe.mdusePrecision.mdusePreferredColorScheme.mdusePreferredContrast.mdusePreferredDark.mdusePreferredLanguages.mdusePreferredReducedMotion.mdusePreferredReducedTransparency.mdusePrevious.mduseProjection.mduseQRCode.mduseRafFn.mduseRefHistory.mduseResizeObserver.mduseRound.mduseRouteHash.mduseRouteParams.mduseRouteQuery.mduseRTDB.mduseScreenOrientation.mduseScreenSafeArea.mduseScriptTag.mduseScroll.mduseScrollLock.mduseSessionStorage.mduseShare.mduseSortable.mduseSorted.mduseSpeechRecognition.mduseSpeechSynthesis.mduseSSRWidth.mduseStepper.mduseStorage.mduseStorageAsync.mduseStyleTag.mduseSubject.mduseSubscription.mduseSum.mduseSupported.mduseSwipe.mduseTemplateRefsList.mduseTextareaAutosize.mduseTextDirection.mduseTextSelection.mduseThrottledRefHistory.mduseThrottleFn.mduseTimeAgo.mduseTimeAgoIntl.mduseTimeout.mduseTimeoutFn.mduseTimeoutPoll.mduseTimestamp.mduseTitle.mduseToggle.mduseToNumber.mduseToString.mduseTransition.mduseTrunc.mduseUrlSearchParams.mduseUserMedia.mduseVibrate.mduseVirtualList.mduseVModel.mduseVModels.mduseWakeLock.mduseWebNotification.mduseWebSocket.mduseWebWorker.mduseWebWorkerFn.mduseWindowFocus.mduseWindowScroll.mduseWindowSize.mduseZoomFactor.mduseZoomLevel.mdwatchArray.mdwatchAtMost.mdwatchDebounced.mdwatchDeep.mdwatchExtractedObservable.mdwatchIgnorable.mdwatchImmediate.mdwatchOnce.mdwatchPausable.mdwatchThrottled.mdwatchTriggerable.mdwatchWithFilter.mdwhenever.md
references/tryOnBeforeMount.md
GitHub| category | Component |
tryOnBeforeMount
Safe onBeforeMount. Call onBeforeMount() if it's inside a component lifecycle, if not, just call the function
Usage
import { tryOnBeforeMount } from '@vueuse/core'
tryOnBeforeMount(() => {
})
Type Declarations
/**
* Call onBeforeMount() if it's inside a component lifecycle, if not, just call the function
*
* @param fn
* @param sync if set to false, it will run in the nextTick() of Vue
* @param target
*/
export declare function tryOnBeforeMount(
fn: Fn,
sync?: boolean,
target?: ComponentInternalInstance | null,
): void