MCPcopy
hub / github.com/vuejs/core / useTransitionState

Function useTransitionState

packages/runtime-core/src/components/BaseTransition.ts:103–117  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

101}
102
103export function useTransitionState(): TransitionState {
104 const state: TransitionState = {
105 isMounted: false,
106 isLeaving: false,
107 isUnmounting: false,
108 leavingVNodes: new Map(),
109 }
110 onMounted(() => {
111 state.isMounted = true
112 })
113 onBeforeUnmount(() => {
114 state.isUnmounting = true
115 })
116 return state
117}
118
119const TransitionHookValidator = [Function, Array]
120

Callers 2

setupFunction · 0.90
setupFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected