From bca8c6d64ee4df94f406fd5af04d9a935578f284 Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Mon, 22 Aug 2022 00:23:08 -0500 Subject: [PATCH] Made Pixi application holder a shallow ref --- src/features/particles/Particles.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/features/particles/Particles.vue b/src/features/particles/Particles.vue index aa963af..8ed509d 100644 --- a/src/features/particles/Particles.vue +++ b/src/features/particles/Particles.vue @@ -13,7 +13,7 @@ import type { StyleValue } from "features/feature"; import "lib/pixi"; import { processedPropType } from "util/vue"; import type { PropType } from "vue"; -import { defineComponent, nextTick, onBeforeUnmount, onMounted, ref, unref } from "vue"; +import { defineComponent, nextTick, onBeforeUnmount, onMounted, ref, shallowRef, unref } from "vue"; // TODO get typing support on the Particles component export default defineComponent({ @@ -32,7 +32,7 @@ export default defineComponent({ onHotReload: Function as PropType }, setup(props) { - const app = ref(null); + const app = shallowRef(null); const resizeObserver = new ResizeObserver(updateBounds); const resizeListener = ref(null);