8000 fix: `el.nativeView` reactivity oddities (#1044) · hackpirodev/nativescript-vue@6fe46e1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6fe46e1

Browse files
authored
fix: el.nativeView reactivity oddities (nativescript-vue#1044)
1 parent fdf7236 commit 6fe46e1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/dom/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { markRaw } from "@vue/runtime-core";
12
import {
23
getViewClass,
34
getViewMeta,
@@ -108,7 +109,7 @@ export class NSVElement extends NSVNode {
108109

109110
this._tagName = normalizeElementName(tagName);
110111
const viewClass = getViewClass(tagName);
111-
this._nativeView = new viewClass();
112+
this._nativeView = markRaw(new viewClass());
112113
this._nativeView[ELEMENT_REF] = this;
113114
}
114115

0 commit comments

Comments
 (0)
0