Skip to content

Commit 5e3e2dd

Browse files
authored
fix: useModel comparison logic
1 parent 4e5cafe commit 5e3e2dd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/runtime-core/src/helpers/useModel.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,9 @@ export function useModel(
5151
},
5252

5353
set(value) {
54+
const _localValue = options.get ? options.get(localValue) : localValue
5455
if (
55-
!hasChanged(value, localValue) &&
56+
!hasChanged(value, _localValue) &&
5657
!(prevSetValue !== EMPTY_OBJ && hasChanged(value, prevSetValue))
5758
) {
5859
return

0 commit comments

Comments
 (0)