Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove splash screen and fix loading issue #2731

Merged
merged 15 commits into from
Apr 7, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
don't make requests before backend ready
  • Loading branch information
joeyballentine committed Apr 6, 2024
commit b947f1e9c9b3164667d72b4f656a3549b832e26b
5 changes: 2 additions & 3 deletions src/renderer/contexts/BackendContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ const useNodes = (
queryFn: async (): Promise<BackendData> => {
try {
// spin until we're no longer restarting
while (backendDownRef.current) {
while (!isBackendReady || backendDownRef.current) {
// eslint-disable-next-line no-await-in-loop
await delay(100);
}
Expand Down Expand Up @@ -304,8 +304,7 @@ export const BackendProvider = memo(

return await backend.status();
} catch (error) {
log.error(error);
throw error;
return { ready: false };
}
},
cacheTime: 0,
Expand Down
Loading