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
  3183ebde_ad80_aeaf_4bd8_296f008a86e3["strats()"]
  a8c8f192_fd2d_dbe3_46ed_dd8fabebc429["warn()"]
  3183ebde_ad80_aeaf_4bd8_296f008a86e3 -->|calls| a8c8f192_fd2d_dbe3_46ed_dd8fabebc429
  09a841b0_c5b7_44a0_d4be_d35802dddc0f["defaultStrat()"]
  3183ebde_ad80_aeaf_4bd8_296f008a86e3 -->|calls| 09a841b0_c5b7_44a0_d4be_d35802dddc0f
  be875bf5_d2ab_d5b9_2c15_622e17aec1fa["mergeDataOrFn()"]
  3183ebde_ad80_aeaf_4bd8_296f008a86e3 -->|calls| be875bf5_d2ab_d5b9_2c15_622e17aec1fa
  e0dd8d58_d576_1292_78c9_3f7c862ed4f6["assertObjectType()"]
  3183ebde_ad80_aeaf_4bd8_296f008a86e3 -->|calls| e0dd8d58_d576_1292_78c9_3f7c862ed4f6
  133969d0_a7bd_f1c5_46a3_9fb8fd249583["extend()"]
  3183ebde_ad80_aeaf_4bd8_296f008a86e3 -->|calls| 133969d0_a7bd_f1c5_46a3_9fb8fd249583
  41335b20_70f9_2989_a478_f3e623afbc9a["mergeData()"]
  3183ebde_ad80_aeaf_4bd8_296f008a86e3 -->|calls| 41335b20_70f9_2989_a478_f3e623afbc9a
  b6885901_8acd_8c4a_af15_cbd768bcd57b["isFunction()"]
  3183ebde_ad80_aeaf_4bd8_296f008a86e3 -->|calls| b6885901_8acd_8c4a_af15_cbd768bcd57b
  style 3183ebde_ad80_aeaf_4bd8_296f008a86e3 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.
What does strats() call?
strats() calls 7 function(s): assertObjectType, defaultStrat, extend, isFunction, mergeData, mergeDataOrFn, warn.

Analyze Your Own Codebase

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

Try Supermodel Free