Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking β€œSign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update vue 2 reactivity #1773

Merged
merged 6 commits into from
May 1, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
chore: add v8 ignore to vue 2 specific code
Graphmaxer committed Feb 9, 2024
commit 4e7be488cc01717cdb5dae8a9b6a5f8cbc0abf1b
2 changes: 2 additions & 0 deletions packages/pinia-orm/src/composables/useStoreActions.ts
Original file line number Diff line number Diff line change
@@ -30,6 +30,7 @@ export function useStoreActions (query?: Query) {
} else {
ids.forEach(id => delete this.data[id])
// Trigger Vue 2 reactivity
/* v8 ignore next 3 */
if (this.data.__ob__) {
this.data.__ob__.dep.notify()
}
@@ -44,6 +45,7 @@ export function useStoreActions (query?: Query) {
} else {
ids.forEach(id => delete this.data[id])
// Trigger Vue 2 reactivity
/* v8 ignore next 3 */
if (this.data.__ob__) {
this.data.__ob__.dep.notify()
}