isValidHook() — supabase Function Reference
Architecture documentation for the isValidHook() function in hooks.utils.ts from the supabase codebase.
Entity Profile
Dependency Diagram
graph TD 2b26d2a1_635d_8e95_7c0f_a3382ff8636f["isValidHook()"] 88ef1a80_8aa7_dc47_4a1b_b4c5227b90a4["AddHookDropdown()"] 88ef1a80_8aa7_dc47_4a1b_b4c5227b90a4 -->|calls| 2b26d2a1_635d_8e95_7c0f_a3382ff8636f ed51c473_5272_57db_6316_2f767f81b646["CreateHookSheet()"] ed51c473_5272_57db_6316_2f767f81b646 -->|calls| 2b26d2a1_635d_8e95_7c0f_a3382ff8636f dd52c5dc_b7d0_44e1_518c_ed23612e4645["HooksListing()"] dd52c5dc_b7d0_44e1_518c_ed23612e4645 -->|calls| 2b26d2a1_635d_8e95_7c0f_a3382ff8636f style 2b26d2a1_635d_8e95_7c0f_a3382ff8636f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/studio/components/interfaces/Auth/Hooks/hooks.utils.ts lines 22–29
export const isValidHook = (h: Hook) => {
return (
(h.method.type === 'postgres' &&
h.method.schema.length > 0 &&
h.method.functionName.length > 0) ||
(h.method.type === 'https' && h.method.url.startsWith('https') && h.method.secret.length > 0)
)
}
Domain
Subdomains
Source
Frequently Asked Questions
What does isValidHook() do?
isValidHook() is a function in the supabase codebase.
What calls isValidHook()?
isValidHook() is called by 3 function(s): AddHookDropdown, CreateHookSheet, HooksListing.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free