Source identity
| Field | Recorded value |
|---|---|
| Source type | GitHub source |
| Original record | Janady13/thatdeveloperguy-website / app/routes/_page.tsx |
| Date | Not specified in source |
| Repository | Janady13/thatdeveloperguy-website |
| Revision | 2bea2ebdff0e34494bff597d4fa9c8422a0c3a94 |
| Branch | main |
| Path or archive member | app/routes/_page.tsx |
| Original SHA-256 | c7af91bbf489b2b6be2405947ab834946890fc91108e26bd55fc76453962d553 |
| Git blob SHA | 33cd8e38bddff95d9f79df984fc3adfa0a0a19a9 |
| Reading-copy SHA-256 | c7af91bbf489b2b6be2405947ab834946890fc91108e26bd55fc76453962d553 |
Recovered source transcript
Download complete source text ↓12 lines · 0.5 KB
import { useLocation } from 'react-router';
import type { CompiledPage } from '../../src/contracts/page';
import { pageForPath } from '../components/publication/PageMetadata';
import { NotFoundContent } from './not-found';
/** Every route module reads its page from the registry by pathname; an unregistered path renders the 404 content. */
export function usePage(): CompiledPage | null {
const location = useLocation();
return pageForPath(location.pathname) ?? null;
}
export function Missing() { return <NotFoundContent />; }