Skip to content

Commit 4e6d928

Browse files
committed
Maintain reactivity in deeply-nested objects.
1 parent 6860f95 commit 4e6d928

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/lib.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,9 @@ const Utils = class {
545545
}
546546
state[type][id] = data
547547
}
548+
// FIXME: Review with release of Vuex5 to see if there is a new ref()/reactive() approach
549+
// Maintain reactivity by 'touching' the 'root' state property
550+
state[type] = { ...state[type] }
548551
}
549552
}
550553
}

0 commit comments

Comments
 (0)