Skip to content

Commit

Permalink
types: fix ref unwrapping issue with _dirtyProps type
Browse files Browse the repository at this point in the history
  • Loading branch information
ascott18 committed Nov 28, 2024
1 parent 32d3f06 commit 2099985
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/coalesce-vue/src/viewmodel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export abstract class ViewModel<
/** @internal */
_dirtyProps: Set<PropNames<TModel["$metadata"]>> = 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.
Expand Down

0 comments on commit 2099985

Please sign in to comment.