Skip to content

refactor: poll for git auth updates when creating a workspace #9804

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

Merged
merged 13 commits into from
Sep 26, 2023
Prev Previous commit
Next Next commit
🧹
  • Loading branch information
aslilac committed Sep 22, 2023
commit e0f72ef4483dd6663562a0e92bfe5cdcf60aeaa5
5 changes: 1 addition & 4 deletions site/src/pages/CreateWorkspacePage/CreateWorkspacePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,8 @@ const CreateWorkspacePage: FC = () => {
}, [gitAuthPollingState]);

const startPollingGitAuth = useCallback(() => {
if (gitAuthPollingState === "polling") {
return;
}
setGitAuthPollingState("polling");
}, [gitAuthPollingState]);
}, []);

const { data: gitAuth, error } = useQuery(
versionId
Expand Down