fix: platform loading issues

This commit is contained in:
Arman committed 2024-03-11 16:55:20 +01:00
1 parent a9a04ffe6e
commit c216cf98f1
4 files changed
+7 -20

No files matched your search

@@ -4,7 +4,6 @@
import { wizard } from '$lib/stores/wizard';
import { createPlatform } from './wizard/store';
import { Dependencies } from '$lib/constants';
import { onboarding } from '../../store';
import type { WizardStepsType } from '$lib/layout/wizard.svelte';
import Step1 from './wizard/android/step1.svelte';
import Step2 from './wizard/android/step2.svelte';
@@ -12,10 +11,7 @@
import Step4 from './wizard/step4.svelte';
async function onFinish() {
await Promise.all([
$onboarding && invalidate(Dependencies.PROJECT),
invalidate(Dependencies.PLATFORMS)
]);
await Promise.all([invalidate(Dependencies.PROJECT), invalidate(Dependencies.PLATFORMS)]);
createPlatform.reset();
wizard.hide();
}
@@ -9,13 +9,10 @@
import Step3 from './wizard/apple/step3.svelte';
import Step4 from './wizard/step4.svelte';
import { Dependencies } from '$lib/constants';
import { onboarding } from '../../store';
async function onFinish() {
await Promise.all([
$onboarding && invalidate(Dependencies.PROJECT),
invalidate(Dependencies.PLATFORMS)
]);
await Promise.all([invalidate(Dependencies.PROJECT), invalidate(Dependencies.PLATFORMS)]);
createPlatform.reset();
wizard.hide();
}
@@ -9,13 +9,10 @@
import Step3 from './wizard/flutter/step3.svelte';
import Step4 from './wizard/step4.svelte';
import { Dependencies } from '$lib/constants';
import { onboarding } from '../../store';
async function onFinish() {
await Promise.all([
$onboarding && invalidate(Dependencies.PROJECT),
invalidate(Dependencies.PLATFORMS)
]);
await Promise.all([invalidate(Dependencies.PROJECT), invalidate(Dependencies.PLATFORMS)]);
createPlatform.reset();
wizard.hide();
}
@@ -9,13 +9,10 @@
import Step3 from './wizard/web/step3.svelte';
import Step4 from './wizard/step4.svelte';
import { Dependencies } from '$lib/constants';
import { onboarding } from '../../store';
async function onFinish() {
await Promise.all([
$onboarding && invalidate(Dependencies.PROJECT),
invalidate(Dependencies.PLATFORMS)
]);
await Promise.all([invalidate(Dependencies.PROJECT), invalidate(Dependencies.PLATFORMS)]);
createPlatform.reset();
wizard.hide();
}