From 51f2dd4dde1c14d6e10f2658ff20f8cdcc5810f7 Mon Sep 17 00:00:00 2001 From: Nick Wittwer <6360459+nwittwer@users.noreply.github.com> Date: Wed, 22 Mar 2023 19:13:57 +0100 Subject: [PATCH 1/5] Don't persist the store/interactions, since these should be temporary --- app/src/renderer/store/interactions.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/src/renderer/store/interactions.ts b/app/src/renderer/store/interactions.ts index b7c9b840..e02be4bd 100644 --- a/app/src/renderer/store/interactions.ts +++ b/app/src/renderer/store/interactions.ts @@ -61,4 +61,9 @@ export const useInteractionStore = defineStore('interactions', { this.isWebInteractionContext = value }, }, + // Settings for persisting the store to localStorage + // We DO NOT want to save the state + persistedState: { + persist: false, // Don't save this! + }, }) From 9f26fb7a933d02dd9efb23bf7fe0eb15f5b65c6c Mon Sep 17 00:00:00 2001 From: Nick Wittwer <6360459+nwittwer@users.noreply.github.com> Date: Wed, 22 Mar 2023 19:15:37 +0100 Subject: [PATCH 2/5] (WIP) Trying to get Pinia Getter for isInteracting working, but Getters are not updated due to bug w/ Nuxt v2/Vue 2 --- app/src/renderer/components/DevModeHud.vue | 11 +-- .../renderer/components/Screens/Artboard.vue | 98 +++++++------------ 2 files changed, 38 insertions(+), 71 deletions(-) diff --git a/app/src/renderer/components/DevModeHud.vue b/app/src/renderer/components/DevModeHud.vue index 59614e94..fcde12c6 100644 --- a/app/src/renderer/components/DevModeHud.vue +++ b/app/src/renderer/components/DevModeHud.vue @@ -1,10 +1,5 @@