UNPKG
@drop-in/new
Version:
latest (0.1.0)
0.1.0
0.0.25
0.0.24
0.0.21
0.0.20
0.0.19
0.0.18
0.0.17
0.0.16
0.0.15
0.0.14
0.0.13
0.0.12
0.0.11
0.0.3
A SvelteKit Svelte 5 PocketBase Starter Kit with a CLI
@drop-in/new
/
templates
/
pocketbase
/
src
/
routes
/
(app)
/
+layout.ts
12 lines
(9 loc)
•
292 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
import
{ pb }
from
'$/pocketbase'
;
import
type {
UsersResponse
}
from
'$/types/pocketbase'
;
export
const
ssr =
false
;
export
const
load =
async
function
(
{ depends }
) {
depends
(
'app:user'
);
return
{
user
: pb.
authStore
.
isValid
? (pb.
authStore
.
model
as
UsersResponse
) :
undefined
, }; };