Home / Function/ createKeyToOldIdx() — vue Function Reference

createKeyToOldIdx() — vue Function Reference

Architecture documentation for the createKeyToOldIdx() function in patch.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  8b389311_4836_42ee_5cb4_5f9dbab172ad["createKeyToOldIdx()"]
  2da82d37_d0a8_bdfd_86ba_26432270288e["createPatchFunction()"]
  2da82d37_d0a8_bdfd_86ba_26432270288e -->|calls| 8b389311_4836_42ee_5cb4_5f9dbab172ad
  style 8b389311_4836_42ee_5cb4_5f9dbab172ad fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/core/vdom/patch.ts lines 56–64

function createKeyToOldIdx(children, beginIdx, endIdx) {
  let i, key
  const map = {}
  for (i = beginIdx; i <= endIdx; ++i) {
    key = children[i].key
    if (isDef(key)) map[key] = i
  }
  return map
}

Domain

Subdomains

Frequently Asked Questions

What does createKeyToOldIdx() do?
createKeyToOldIdx() is a function in the vue codebase.
What calls createKeyToOldIdx()?
createKeyToOldIdx() is called by 1 function(s): createPatchFunction.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free