Home / Function/ isValidStore() — react Function Reference

isValidStore() — react Function Reference

Architecture documentation for the isValidStore() function in store.ts from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  2a739178_9890_e1c6_b080_c8a0ce48e4cc["isValidStore()"]
  4949445b_a2de_ca5c_8e91_50e8a7ed966a["store.ts"]
  2a739178_9890_e1c6_b080_c8a0ce48e4cc -->|defined in| 4949445b_a2de_ca5c_8e91_50e8a7ed966a
  437c46d4_8fab_c101_3235_3409c9d1c254["initStoreFromUrlOrLocalStorage()"]
  437c46d4_8fab_c101_3235_3409c9d1c254 -->|calls| 2a739178_9890_e1c6_b080_c8a0ce48e4cc
  style 2a739178_9890_e1c6_b080_c8a0ce48e4cc fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

compiler/apps/playground/lib/stores/store.ts lines 43–50

function isValidStore(raw: unknown): raw is Store {
  return (
    raw != null &&
    typeof raw == 'object' &&
    'source' in raw &&
    typeof raw['source'] === 'string'
  );
}

Domain

Subdomains

Frequently Asked Questions

What does isValidStore() do?
isValidStore() is a function in the react codebase, defined in compiler/apps/playground/lib/stores/store.ts.
Where is isValidStore() defined?
isValidStore() is defined in compiler/apps/playground/lib/stores/store.ts at line 43.
What calls isValidStore()?
isValidStore() is called by 1 function(s): initStoreFromUrlOrLocalStorage.

Analyze Your Own Codebase

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

Try Supermodel Free