From 3eacef1bd45f77bc16d6b853ea6e1fb58501306b Mon Sep 17 00:00:00 2001 From: gsovereignty Date: Wed, 8 Nov 2023 14:29:00 +0800 Subject: [PATCH] problem: we are making unecessary subscriptions --- .../problems/AddProblemModal.svelte | 232 ------------------ .../event_sources/relays/livesubscriptions.ts | 13 +- .../stores/nostrocket_state/master_state.ts | 10 +- .../nostrocket_state/soft_state/problems.ts | 136 +++++----- src/routes/problems/+page.svelte | 20 +- src/routes/problems/[id]/+page.svelte | 4 +- 6 files changed, 90 insertions(+), 325 deletions(-) delete mode 100644 src/components/problems/AddProblemModal.svelte diff --git a/src/components/problems/AddProblemModal.svelte b/src/components/problems/AddProblemModal.svelte deleted file mode 100644 index cc11c38..0000000 --- a/src/components/problems/AddProblemModal.svelte +++ /dev/null @@ -1,232 +0,0 @@ - - - - - ((formOpen = false), reset())} - on:submit={() => (formValidation ? onFormSubmit() : null)} -> -
- {#if !$currentUser} - - - - {/if} - -