getContext() — vue Function Reference
Architecture documentation for the getContext() function in apiSetup.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD f0e53308_3ebc_8af6_4759_f599ee684ba5["getContext()"] 4ad51b1f_61ec_31ba_dbb7_667d6a0a8c85["apiSetup.ts"] f0e53308_3ebc_8af6_4759_f599ee684ba5 -->|defined in| 4ad51b1f_61ec_31ba_dbb7_667d6a0a8c85 76ac3604_37f7_3e8c_b687_13049ae2062b["useSlots()"] 76ac3604_37f7_3e8c_b687_13049ae2062b -->|calls| f0e53308_3ebc_8af6_4759_f599ee684ba5 c6c2dd0e_103f_203a_1b89_e97272dd7aae["useAttrs()"] c6c2dd0e_103f_203a_1b89_e97272dd7aae -->|calls| f0e53308_3ebc_8af6_4759_f599ee684ba5 05893285_b876_844f_9a0a_6245629673d9["useListeners()"] 05893285_b876_844f_9a0a_6245629673d9 -->|calls| f0e53308_3ebc_8af6_4759_f599ee684ba5 90e994f6_eac7_d182_0e97_d5a116aca32a["createSetupContext()"] f0e53308_3ebc_8af6_4759_f599ee684ba5 -->|calls| 90e994f6_eac7_d182_0e97_d5a116aca32a style f0e53308_3ebc_8af6_4759_f599ee684ba5 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/v3/apiSetup.ts lines 208–214
function getContext(): SetupContext {
if (__DEV__ && !currentInstance) {
warn(`useContext() called without active instance.`)
}
const vm = currentInstance!
return vm._setupContext || (vm._setupContext = createSetupContext(vm))
}
Domain
Subdomains
Defined In
Calls
Called By
Source
Frequently Asked Questions
What does getContext() do?
getContext() is a function in the vue codebase, defined in src/v3/apiSetup.ts.
Where is getContext() defined?
getContext() is defined in src/v3/apiSetup.ts at line 208.
What does getContext() call?
getContext() calls 1 function(s): createSetupContext.
What calls getContext()?
getContext() is called by 3 function(s): useAttrs, useListeners, useSlots.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free