Home / Function/ useTocAnchors() — supabase Function Reference

useTocAnchors() — supabase Function Reference

Architecture documentation for the useTocAnchors() function in toc-single-demo.tsx from the supabase codebase.

Entity Profile

Dependency Diagram

graph TD
  6af34446_ebe5_8dc0_f42d_66ff7e71f4e1["useTocAnchors()"]
  c2aab13b_fc36_f221_1111_6c03139d562f["TocComponent()"]
  c2aab13b_fc36_f221_1111_6c03139d562f -->|calls| 6af34446_ebe5_8dc0_f42d_66ff7e71f4e1
  style 6af34446_ebe5_8dc0_f42d_66ff7e71f4e1 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/design-system/registry/default/example/toc-single-demo.tsx lines 168–174

const useTocAnchors = () => {
  const context = useContext(TocAnchorsContext)
  if (!context) {
    throw new Error('useTocAnchors must be used within an TocAnchorsContext')
  }
  return context
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does useTocAnchors() do?
useTocAnchors() is a function in the supabase codebase.
What calls useTocAnchors()?
useTocAnchors() is called by 1 function(s): TocComponent.

Analyze Your Own Codebase

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

Try Supermodel Free