From a107dff4d6915d348462264c5dc92a90c46128e3 Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 29 Jun 2022 16:06:13 +0900 Subject: [PATCH] perf(client): remove needless reactivity --- packages/client/src/components/global/router-view.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/client/src/components/global/router-view.vue b/packages/client/src/components/global/router-view.vue index 393ba30c3d..56b53e0127 100644 --- a/packages/client/src/components/global/router-view.vue +++ b/packages/client/src/components/global/router-view.vue @@ -21,7 +21,7 @@ if (router == null) { throw new Error('no router provided'); } -let currentPageComponent = $ref(router.getCurrentComponent()); +let currentPageComponent = $shallowRef(router.getCurrentComponent()); let currentPageProps = $ref(router.getCurrentProps()); let key = $ref(router.getCurrentKey());