diff --git a/libs/remix-ui/workspace/src/lib/actions/workspace.ts b/libs/remix-ui/workspace/src/lib/actions/workspace.ts index 78e4f96b2d..41965ca067 100644 --- a/libs/remix-ui/workspace/src/lib/actions/workspace.ts +++ b/libs/remix-ui/workspace/src/lib/actions/workspace.ts @@ -135,6 +135,7 @@ export const createWorkspace = async (workspaceName: string, workspaceTemplateNa } } cb && cb(null, workspaceName) + // this call needs to be here after the callback because it calls dGitProvider which also calls this function and that would cause an infinite loop await plugin.setWorkspaces(await getWorkspaces()) }).catch((error) => { dispatch(createWorkspaceError({ error }))