The load()-function in +page.js returns the "profile"-object referenced as "data" in +layout.svelte, hence it should be referenced as "data.profile" instead of "profile".
Did you test this fix to confirm that follow toggling works? It's obviously less broken than the existing code, but I'm not entirely sure it's valid to update data.profile in that manner
The load()-function in +page.js returns the "profile"-object referenced as "data" in +layout.svelte, hence it should be referenced as "data.profile" instead of "profile".