update: better store reset.

This commit is contained in:
Darshan
2025-01-23 14:41:45 +05:30
parent 9d4e7a407b
commit 94a06f6ec5
4 changed files with 8 additions and 8 deletions
@@ -87,11 +87,12 @@ const val APPWRITE_PUBLIC_ENDPOINT = "${sdk.forProject.client.config.endpoint}"
return () => {
unsubscribe();
resetPlatformStore();
};
});
</script>
<Wizard title="Add Android platform" bind:showExitModal confirmExit onExit={resetPlatformStore}>
<Wizard title="Add Android platform" bind:showExitModal confirmExit>
<Form onSubmit={createAndroidPlatform}>
<Layout.Stack gap="xxl">
<!-- Step One -->
@@ -98,11 +98,12 @@ APPWRITE_PUBLIC_ENDPOINT: "${sdk.forProject.client.config.endpoint}"
return () => {
unsubscribe();
resetPlatformStore();
};
});
</script>
<Wizard title="Add Apple platform" bind:showExitModal confirmExit onExit={resetPlatformStore}>
<Wizard title="Add Apple platform" bind:showExitModal confirmExit>
<Form onSubmit={createApplePlatform}>
<Layout.Stack gap="xxl">
<!-- Step One -->
@@ -154,11 +154,12 @@ static const String APPWRITE_PUBLIC_ENDPOINT = "${sdk.forProject.client.config.e
return () => {
unsubscribe();
resetPlatformStore();
};
});
</script>
<Wizard title="Add Flutter platform" bind:showExitModal confirmExit onExit={resetPlatformStore}>
<Wizard title="Add Flutter platform" bind:showExitModal confirmExit>
<Form onSubmit={createFlutterPlatform}>
<Layout.Stack gap="xxl">
<!-- Step One -->
@@ -125,15 +125,12 @@ const APPWRITE_PUBLIC_ENDPOINT = "${sdk.forProject.client.config.endpoint}";
return () => {
unsubscribe();
resetPlatformStore();
};
});
</script>
<Wizard
title="Add React Native platform"
bind:showExitModal
confirmExit
onExit={resetPlatformStore}>
<Wizard title="Add React Native platform" bind:showExitModal confirmExit>
<Form onSubmit={createFlutterPlatform}>
<Layout.Stack gap="xxl">
<!-- Step One -->