useTocAnchors() — supabase Function Reference
Architecture documentation for the useTocAnchors() function in toc-demo.tsx from the supabase codebase.
Entity Profile
Dependency Diagram
graph TD 782ddf3c_3efe_75e2_2d55_50f6f89b81e6["useTocAnchors()"] c1063ec9_c17b_7bab_6e77_29790eb7d286["TocComponent()"] c1063ec9_c17b_7bab_6e77_29790eb7d286 -->|calls| 782ddf3c_3efe_75e2_2d55_50f6f89b81e6 style 782ddf3c_3efe_75e2_2d55_50f6f89b81e6 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/design-system/registry/default/example/toc-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
Source
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