We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e6d8315 commit 1832eefCopy full SHA for 1832eef
1 file changed
packages/desktop/src/index.tsx
@@ -391,11 +391,7 @@ type ServerReadyData = { url: string; password: string | null }
391
392
// Gate component that waits for the server to be ready
393
function ServerGate(props: { children: (data: Accessor<ServerReadyData>) => JSX.Element }) {
394
- const [serverData] = createResource<ServerReadyData>(() =>
395
- commands.ensureServerReady().then((v) => {
396
- return new Promise((res) => setTimeout(() => res(v as ServerReadyData), 2000))
397
- }),
398
- )
+ const [serverData] = createResource(() => commands.ensureServerReady())
399
400
const errorMessage = () => {
401
const error = serverData.error
0 commit comments