migration of comments

This commit is contained in:
Michael Freno
2025-12-17 22:47:19 -05:00
parent a092c57d36
commit 1bc57c61eb
37 changed files with 3022 additions and 442 deletions

View File

@@ -9,7 +9,16 @@ export interface ErrorBoundaryFallbackProps {
export default function ErrorBoundaryFallback(
props: ErrorBoundaryFallbackProps
) {
const navigate = useNavigate();
// Try to get navigate, but handle case where we're outside router context
let navigate: ((path: string) => void) | undefined;
try {
navigate = useNavigate();
} catch (e) {
// If we're outside router context, fallback to window.location
navigate = (path: string) => {
window.location.href = path;
};
}
const [glitchText, setGlitchText] = createSignal("ERROR");
createEffect(() => {