SvelteKit Tutorial - 27 - Server Load Function

preview_player
Показать описание

📱 Follow Codevolution

Server Load Function
SvelteKit Tutorial
SvelteKit Tutorial for Beginners
Рекомендации по теме
Комментарии
Автор

I'm following along the way and when I come to the point that I've arguments or questions come up in my mind. He will almost immediately answer that doubt in such perfect timing. Such a good planning such a great teacher.

LemonSensei
Автор

I don't quite get the need for a +page.js then... bear in mind I'm new to the web dev but is there any reason to load from the client-side, ever?
(Oh.. never mind then... seeya next vid lol)

manai
Автор

what if my app is just a front end shell without a backend enviroment ... how can I protect my api keys?

argempusrecords
Автор

I never use +page.js because it exposes api key to browser, and I destruct fetch in parameter of server load component to make it easier-> export const load = ({ fetch }) => {}, BTW, this is a great tutorial illustrating Sveltekit 👍👍👍

maskman
join shbcf.ru