From 9754d7ebf1400dbcd22ad46ef063e6c50bb11559 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20de=20Dios=20Mart=C3=ADnez=20Vallejo?= Date: Mon, 15 May 2023 15:42:54 +0200 Subject: [PATCH] fix .nativeView reactivity --- src/dom/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dom/index.ts b/src/dom/index.ts index 935dde4d..1e66031b 100644 --- a/src/dom/index.ts +++ b/src/dom/index.ts @@ -1,3 +1,4 @@ +import { markRaw } from "@vue/runtime-core"; import { getViewClass, getViewMeta, @@ -108,7 +109,7 @@ export class NSVElement extends NSVNode { this._tagName = normalizeElementName(tagName); const viewClass = getViewClass(tagName); - this._nativeView = new viewClass(); + this._nativeView = markRaw(new viewClass()); this._nativeView[ELEMENT_REF] = this; }