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]
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]
YouTube
Devtopia - E04 - Kinfish (Better Auth, Farm UI)
In this episode Kinfish joins us to talk about JS web frameworks, JS build systems and the general ecosystem at large. We also talk about how he got into the world of programming. We also talk about how he joined Better Auth and the company's journey till…
🔥2
In SvelteKit,
-use Client-side redirect
- Or just… don’t use try/catch 😁
If you insist & still want try/catch:
→
@KeO_Coder
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