Home / Function/ clearRegistryContext() — ui Function Reference

clearRegistryContext() — ui Function Reference

Architecture documentation for the clearRegistryContext() function in context.ts from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  a131af6d_b043_1cac_9286_a1da3e8a8d44["clearRegistryContext()"]
  9c06945e_ff8c_6208_b456_06ff9c3a854a["context.ts"]
  a131af6d_b043_1cac_9286_a1da3e8a8d44 -->|defined in| 9c06945e_ff8c_6208_b456_06ff9c3a854a
  style a131af6d_b043_1cac_9286_a1da3e8a8d44 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/shadcn/src/registry/context.ts lines 22–24

export function clearRegistryContext() {
  context.headers = {}
}

Subdomains

Frequently Asked Questions

What does clearRegistryContext() do?
clearRegistryContext() is a function in the ui codebase, defined in packages/shadcn/src/registry/context.ts.
Where is clearRegistryContext() defined?
clearRegistryContext() is defined in packages/shadcn/src/registry/context.ts at line 22.

Analyze Your Own Codebase

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

Try Supermodel Free