From 20999855e8568aab71cfd64cb34b86f02dde3637 Mon Sep 17 00:00:00 2001 From: Andrew Scott Date: Wed, 27 Nov 2024 19:32:33 -0800 Subject: [PATCH] types: fix ref unwrapping issue with _dirtyProps type --- src/coalesce-vue/src/viewmodel.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/coalesce-vue/src/viewmodel.ts b/src/coalesce-vue/src/viewmodel.ts index dd6e248d9..77cefc15e 100644 --- a/src/coalesce-vue/src/viewmodel.ts +++ b/src/coalesce-vue/src/viewmodel.ts @@ -143,7 +143,7 @@ export abstract class ViewModel< /** @internal */ _dirtyProps: Set> = IsVue2 ? new Set() - : reactive(new Set()); + : (reactive(new Set()) as any); // as any to avoid ref unwrapping madness // Backwards-compat with vue2 nonreactive sets. // Typed as any because vue ref unwrapping causes problems with a prop that is a maybe ref.