Skip to content

Commit 4261fb6

Browse files
ref(onboarding): Add persistInFlight to all mutations (#92709)
Adds `persistInFlight` to onboarding's mutations as it was recommended [here](#92186 (comment))
1 parent 1316eb4 commit 4261fb6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

static/app/components/onboarding/useCreateProject.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ interface Variables {
1414
}
1515

1616
export function useCreateProject() {
17-
const api = useApi();
17+
const api = useApi({persistInFlight: true});
1818
const organization = useOrganization();
1919

2020
return useMutation<Project, RequestError, Variables>({

static/app/components/onboarding/useMutateOnboardingTasks.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import useOrganization from 'sentry/utils/useOrganization';
88
* Custom hook to update multiple onboarding tasks in parallel.
99
*/
1010
export function useMutateOnboardingTasks() {
11-
const api = useApi();
11+
const api = useApi({persistInFlight: true});
1212
const organization = useOrganization();
1313

1414
return useMutation({

0 commit comments

Comments
 (0)