safeHistoryReplaceState() — supabase Function Reference
Architecture documentation for the safeHistoryReplaceState() function in historyUtils.ts from the supabase codebase.
Entity Profile
Dependency Diagram
graph TD b6c39fa8_eb5d_6292_0091_ccda003cb449["safeHistoryReplaceState()"] f524fc5e_b03a_97d2_8d73_c1ee39fdde34["reducer()"] f524fc5e_b03a_97d2_8d73_c1ee39fdde34 -->|calls| b6c39fa8_eb5d_6292_0091_ccda003cb449 072988b4_0223_3dc4_0036_30a1d5258715["ReferenceSectionWrapper()"] 072988b4_0223_3dc4_0036_30a1d5258715 -->|calls| b6c39fa8_eb5d_6292_0091_ccda003cb449 e54a4489_ccbe_5fd0_48bf_4f6c6bdcbc11["StickyHeader()"] e54a4489_ccbe_5fd0_48bf_4f6c6bdcbc11 -->|calls| b6c39fa8_eb5d_6292_0091_ccda003cb449 79c99230_2459_f86c_5c19_25346a6051fd["StickyHeader()"] 79c99230_2459_f86c_5c19_25346a6051fd -->|calls| b6c39fa8_eb5d_6292_0091_ccda003cb449 style b6c39fa8_eb5d_6292_0091_ccda003cb449 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/docs/lib/historyUtils.ts lines 3–13
export const safeHistoryReplaceState = debounce((url: string) => {
if (typeof window === 'undefined') return
if (url === window.location.href) return
try {
window.history.replaceState(null, '', url)
} catch (error) {
console.warn('Failed to call history.replaceState:', error)
}
}, 120)
Domain
Subdomains
Source
Frequently Asked Questions
What does safeHistoryReplaceState() do?
safeHistoryReplaceState() is a function in the supabase codebase.
What calls safeHistoryReplaceState()?
safeHistoryReplaceState() is called by 4 function(s): ReferenceSectionWrapper, StickyHeader, StickyHeader, reducer.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free