Ke . O
886 subscribers
282 photos
30 videos
5 files
185 links
sharing stuff i build — from small dev tools to random experiments.
mostly coding, sometimes design, a bit of tech curiosity sprinkled in.

figuring things out one project at a time.

portfolio: https://www.kenawak.works/
Download Telegram
We’ve gone too far to even think about turning back.

@KeO_Coder
👍6
Forwarded from Frectonz
Devtopia is back with another interview. This one is with kinfish (@kinfishfarms). It ended up being our longest episode to date.

We talked about a lot of cool stuff, hope you enjoy the episode, also thank you kinfish for being on the episode.

[Devtopia - E04 - Kinfish]
🔥2
In SvelteKit, redirect() inside a try/catch throws a special error that MUST bubble up to the framework. If you catch it without re-throwing → the redirect dies. Server redirects() only break if you catch them. Easiest ways to dodge this:
-use Client-side redirect
- Or just… don’t use try/catch 😁
If you insist & still want try/catch:
try {
throw redirect(302, '/login');
} catch (err) {
console.log("caught it lol");
// redirect dies here
}


try {
throw redirect(302, '/login');
} catch (err) {
if (err.status) throw err; // redirect survives ✔️
}


@KeO_Coder
👍2