Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

chore(vue3): use vue 2.7 reactive function #1202

Merged
merged 1 commit into from
Apr 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 2 additions & 2 deletions src/collectionstore.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
*
*/

import Vue, { set } from 'vue'
import { reactive, set } from 'vue'
import service from './collectionservice.js'

const state = Vue.observable({
const state = reactive({
collections: [],
})

Expand Down
9 changes: 8 additions & 1 deletion src/components/CollectionList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,13 @@ export default {
default: true,
},
},

setup() {
return {
state,
}
},

data() {
return {
selectIsOpen: false,
Expand All @@ -134,10 +141,10 @@ export default {
model: {},
searchCollections: [],
error: null,
state,
isSelectOpen: false,
}
},

computed: {
collections() {
return this.state.collections.filter((collection) => {
Expand Down
Loading