diff --git a/src/store/gcodeviewer/mutations.ts b/src/store/gcodeviewer/mutations.ts index 2639357a1..86e2d3682 100644 --- a/src/store/gcodeviewer/mutations.ts +++ b/src/store/gcodeviewer/mutations.ts @@ -1,7 +1,7 @@ import { getDefaultState } from './index' import { MutationTree } from 'vuex' import { GcodeviewerState } from '@/store/gcodeviewer/types' -import Vue from 'vue' +import Vue, { markRaw } from 'vue' export const mutations: MutationTree = { reset(state) { @@ -9,7 +9,7 @@ export const mutations: MutationTree = { }, setViewerBackup(state, backup) { - Vue.set(state, 'viewerBackup', backup) + Vue.set(state, 'viewerBackup', markRaw(backup) /* viewer object is large and quite slow to proxy */) }, setCanvasBackup(state, backup) {