WEBVTT

1
00:00:00.607 --> 00:00:08.848
SvelteKit gives you a place to put the query that is already on the server. The grid does not need to know about any of it: it takes an array.

2
00:00:10.739 --> 00:00:18.981
There is a SvelteKit template, so the whole app is two commands. If you have a project already, installing the package is enough.

3
00:00:20.876 --> 00:00:29.674
The load function runs on the server. Your database credentials are already there, so the query belongs there too, and the browser never sees it.

4
00:00:30.095 --> 00:00:40.193
The page takes what that returned and hands it straight to the grid. Type the columns against your row type, as in lesson two, and the compiler checks the field names for you.

5
00:00:42.139 --> 00:00:50.984
Here is a grid over a real endpoint, which is what your page becomes once the load function points at a database instead of a demo API.

6
00:00:57.563 --> 00:01:10.495
The part worth knowing: the server HTML contains a viewport of real rows, not an empty container waiting for hydration. A crawler sees data, and a reader sees the table before the JavaScript arrives.

7
00:01:12.415 --> 00:01:18.381
URL-driven sorting and form actions for edits are on the page below. One lesson to go.
