Files
vacuum-wall/webui/static/pages/notfound.js
T
mteehan ca27ea5522 feature: framework-level abort handling for page lifecycle
component.js now creates an AbortController for each page mount, passing
it to load(). On unmount, the controller is aborted to cancel in-flight
requests that would otherwise mutate unmounted state.

Page load functions consistently pass the signal to apiFetch and guard
state mutations with abort checks. This eliminates the need for per-page
abortController boilerplate and prevents stale errors from appearing on
rapid navigation.

Users page now guards catch block and loading state cleanup against
aborted requests, matching passkeys.js pattern.
2026-07-28 02:52:28 +00:00

16 lines
425 B
JavaScript

import { html, PageHeader, definePage } from '/static/hoover/index.js?v=10';
export default definePage({
init() {
return { path: location.hash.slice(1) || '' };
},
render(state) {
return [
PageHeader({ title: '404' }),
html`<div class="card">
<div class="card-body text-muted">Page not found: ${state.path}</div>
</div>`,
];
},
});