This repository was archived by the owner on Mar 16, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +7
-9
lines changed Expand file tree Collapse file tree 2 files changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -87,11 +87,13 @@ export function Home() {
87
87
</ Button >
88
88
</ form >
89
89
90
- < Show when = { user ( ) } >
91
- < div class = { choiceSeparator } > Your scratches & forks </ div >
90
+ < Suspense >
91
+ < Show when = { user ( ) } >
92
+ < div class = { choiceSeparator } > Your scratches & forks </ div >
92
93
93
- < ScratchList />
94
- </ Show >
94
+ < ScratchList />
95
+ </ Show >
96
+ </ Suspense >
95
97
</ div >
96
98
97
99
< HomeFooter />
Original file line number Diff line number Diff line change 1
- import { action , redirect } from '@solidjs/router' ;
2
- import { Account , Client , Databases , OAuthProvider } from 'node-appwrite' ;
3
- import { getHeaders } from 'vinxi/http' ;
1
+ import { Account , Client , Databases } from 'node-appwrite' ;
4
2
import { getSession } from './session' ;
5
3
6
4
export async function createSessionClient ( ) {
7
- 'use server' ;
8
5
const projectId = process . env . APPWRITE_CLOUD_PROJECT_ID ! ;
9
6
const endpoint = process . env . APPWRITE_CLOUD_URL ! ;
10
7
const client = new Client ( ) . setProject ( projectId ) . setEndpoint ( endpoint ) ;
@@ -26,7 +23,6 @@ export async function createSessionClient() {
26
23
}
27
24
28
25
export async function createAdminClient ( ) {
29
- 'use server' ;
30
26
const apiKey = process . env . APPWRITE_CLOUD_FULL_ACCESS_API_KEY ! ;
31
27
const projectId = process . env . APPWRITE_CLOUD_PROJECT_ID ! ;
32
28
const endpoint = process . env . APPWRITE_CLOUD_URL ! ;
You can’t perform that action at this time.
0 commit comments