Quantcast
Channel: Active questions tagged svelte - Stack Overflow
Viewing all articles
Browse latest Browse all 1541

How to show 404 error page in SvelteKit after route is rendered

$
0
0

I would like to show 404 manually after load() (in +page.ts) is already resolved.Eg as result of streamed data or data loaded lazily on client side.

In such case simple throw error(404) can't be used, because it's caught only until load() resolved.


Viewing all articles
Browse latest Browse all 1541

Trending Articles