Better Protected Routes with endpoints, hooks, and load in SvelteKit

You can use load() to protect web pages in SvelteKit and enable your application to still work with and without JavaScript enabled. In this episode, I walk through converting from our other ProtectedLayout format using slots and switch to using load.
🤯 Support

⏱️ Timestamps:
  • 00:00 - Introduction
  • 00:33 - Demo
  • 01:00 - Code changes (sorry, it's very small changes for each file and not worth splitting out into individual timestamps)

💌 Newsletter:

  • Twitter:
  • Twitter:
  • GitHub:

  • Using load to protect a resource in SvelteKit


🎬 Subscribe!

My name is David W Parker and I’m creating and publishing videos on ProgrammingTIL to help teach anyone and everyone who wants to code. I’m a huge fan of Ruby on Rails, Svelte, TailwindCSS, and WebGL. I’ve used React a lot in the past, as well as some Vue and AngularJS. I’ve done some professional Python and Django. I like to create real applications and my tutorials will walk you through how to build something real from beginning-to-end.

svelte #sveltekit