0👍
You can use reactive
instead of ref
.
For eg.
- You can use
export const rctStore = reactive({
loading: false,
list: [],
messages: []
})
- Instead of
export const loading = ref(false)
export const list = ref([])
export const messages = ref([])
Cheers!
- [Vuejs]-Set language with i18n an change country flag based on selected language in Vuejs
- [Vuejs]-How do I loop over this nested array in Vue wth v-for?
Source:stackexchange.com