In this video I show the most common place people fire up their clients. I give an example of an application with 4 pages, 3 of which have an identical load function. I then show how to re-factor the load functions to use hooks.server and then re-factor once more to remove the part that fires up the client to a common server module in lib! I hope you find this helpful!
My channel membership is live check it out here!:
/ @consultingninja
Membership perk video:
• I launched a chatbot with my channel membe...
Need help? visit https://www.consultingninja.tech
Check out my channel @ConsultingNinja for more videos like these.
Source code here:
https://github.com/consultingninja/us...
$lib Docs here:
https://kit.svelte.dev/docs/modules#$lib
00:00 - Intro
01:32 - Re-factor to hooks
03:28 - $lib explanation
04:31 - Re-factor to $lib
07:03 - Outro