Home / Function/ strats() — vue Function Reference

strats() — vue Function Reference

Architecture documentation for the strats() function in options.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  400da704_fbee_8793_f946_5579c4ca50dd["strats()"]
  395cc6b0_6f88_f1b1_f5dd_8cdf5c229777["options.ts"]
  400da704_fbee_8793_f946_5579c4ca50dd -->|defined in| 395cc6b0_6f88_f1b1_f5dd_8cdf5c229777
  48bc61b1_05ca_3121_50a7_2f02cdcf2f03["warn()"]
  400da704_fbee_8793_f946_5579c4ca50dd -->|calls| 48bc61b1_05ca_3121_50a7_2f02cdcf2f03
  cd074d69_b631_fc82_f7cd_495e9b3188b1["defaultStrat()"]
  400da704_fbee_8793_f946_5579c4ca50dd -->|calls| cd074d69_b631_fc82_f7cd_495e9b3188b1
  86004998_27f2_db20_3ae5_d1baa8df7968["mergeDataOrFn()"]
  400da704_fbee_8793_f946_5579c4ca50dd -->|calls| 86004998_27f2_db20_3ae5_d1baa8df7968
  ba5dccf7_9e1a_946e_25f6_4f15d51eb5e8["assertObjectType()"]
  400da704_fbee_8793_f946_5579c4ca50dd -->|calls| ba5dccf7_9e1a_946e_25f6_4f15d51eb5e8
  a46cd6c3_9d19_f5e0_7752_7009a1d4a572["mergeData()"]
  400da704_fbee_8793_f946_5579c4ca50dd -->|calls| a46cd6c3_9d19_f5e0_7752_7009a1d4a572
  style 400da704_fbee_8793_f946_5579c4ca50dd fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/core/util/options.ts lines 33–46

  strats.el = strats.propsData = function (
    parent: any,
    child: any,
    vm: any,
    key: any
  ) {
    if (!vm) {
      warn(
        `option "${key}" can only be used during instance ` +
          'creation with the `new` keyword.'
      )
    }
    return defaultStrat(parent, child)
  }

Domain

Subdomains

Frequently Asked Questions

What does strats() do?
strats() is a function in the vue codebase, defined in src/core/util/options.ts.
Where is strats() defined?
strats() is defined in src/core/util/options.ts at line 33.
What does strats() call?
strats() calls 5 function(s): assertObjectType, defaultStrat, mergeData, mergeDataOrFn, warn.

Analyze Your Own Codebase

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

Try Supermodel Free