Home / Function/ willCoercionThrow() — react Function Reference

willCoercionThrow() — react Function Reference

Architecture documentation for the willCoercionThrow() function in CheckStringCoercion.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  75bb5448_8957_48f0_028c_0032a96afe22["willCoercionThrow()"]
  5c0b3019_dcaa_8f32_5625_55fc821f3139["CheckStringCoercion.js"]
  75bb5448_8957_48f0_028c_0032a96afe22 -->|defined in| 5c0b3019_dcaa_8f32_5625_55fc821f3139
  30714f15_7ce0_0f94_1797_10d66ae1061f["checkAttributeStringCoercion()"]
  30714f15_7ce0_0f94_1797_10d66ae1061f -->|calls| 75bb5448_8957_48f0_028c_0032a96afe22
  89d324a1_84f4_d469_eb90_dc13334fccf2["checkKeyStringCoercion()"]
  89d324a1_84f4_d469_eb90_dc13334fccf2 -->|calls| 75bb5448_8957_48f0_028c_0032a96afe22
  9caeb0ae_5fc0_62bf_c545_c6050e839e69["checkPropStringCoercion()"]
  9caeb0ae_5fc0_62bf_c545_c6050e839e69 -->|calls| 75bb5448_8957_48f0_028c_0032a96afe22
  afe62f4e_90b7_e041_1e6a_3267c1de71cb["checkOptionStringCoercion()"]
  afe62f4e_90b7_e041_1e6a_3267c1de71cb -->|calls| 75bb5448_8957_48f0_028c_0032a96afe22
  364b4fbe_73f3_5047_681c_9b3df7648edc["checkCSSPropertyStringCoercion()"]
  364b4fbe_73f3_5047_681c_9b3df7648edc -->|calls| 75bb5448_8957_48f0_028c_0032a96afe22
  7c501fbc_77a4_a9c9_ca5f_902cd801d38a["checkHtmlStringCoercion()"]
  7c501fbc_77a4_a9c9_ca5f_902cd801d38a -->|calls| 75bb5448_8957_48f0_028c_0032a96afe22
  017690c4_1988_dc4b_cfe1_9bde36137812["checkFormFieldValueStringCoercion()"]
  017690c4_1988_dc4b_cfe1_9bde36137812 -->|calls| 75bb5448_8957_48f0_028c_0032a96afe22
  a22cd5aa_5df2_c663_36de_5fb3dc6e3e8a["testStringCoercion()"]
  75bb5448_8957_48f0_028c_0032a96afe22 -->|calls| a22cd5aa_5df2_c663_36de_5fb3dc6e3e8a
  style 75bb5448_8957_48f0_028c_0032a96afe22 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/shared/CheckStringCoercion.js lines 35–44

function willCoercionThrow(value: mixed): boolean {
  if (__DEV__) {
    try {
      testStringCoercion(value);
      return false;
    } catch (e) {
      return true;
    }
  }
}

Domain

Subdomains

Frequently Asked Questions

What does willCoercionThrow() do?
willCoercionThrow() is a function in the react codebase, defined in packages/shared/CheckStringCoercion.js.
Where is willCoercionThrow() defined?
willCoercionThrow() is defined in packages/shared/CheckStringCoercion.js at line 35.
What does willCoercionThrow() call?
willCoercionThrow() calls 1 function(s): testStringCoercion.
What calls willCoercionThrow()?
willCoercionThrow() is called by 7 function(s): checkAttributeStringCoercion, checkCSSPropertyStringCoercion, checkFormFieldValueStringCoercion, checkHtmlStringCoercion, checkKeyStringCoercion, checkOptionStringCoercion, checkPropStringCoercion.

Analyze Your Own Codebase

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

Try Supermodel Free