All Questions
5 questions
-2
votes
1
answer
37
views
Difference between calling watcher with parentheses vs without
In watch property, what is the difference between calling property using () and not using them?
export default {
watch: {
// syntax with ()
test() {
if (this.test) {
//some ...
0
votes
2
answers
210
views
lazy watcher does not execute
I am new vuejs.as shown in the below posted code, the isBtnDigitizePolygonClicked is a reactive variable.i am trying to execute some lines of code as a side effect to the change of the value of ...
0
votes
1
answer
972
views
How do I use multiple Pinia stores in Vue options api?
I have a couple of different Pinia stores but, I cant get the page to switch to a different store when the page loads.
This is what i tried:
mounted() {
this.$pinia.use(useMachineService);
}
But ...
11
votes
4
answers
9k
views
Migrating from vue2 with property-decorator and class style syntax to vue3
I maintain quite a large vue2 project, which among other libraries makes use of Vuetify, vue-class-component, vue-property-decorator and typescript. Example component:
(The component is simplified ...
16
votes
1
answer
4k
views
Do I have to use the Composition API in Vue 3, or can I still do things the "Vue 2" way?
Is it possible to install Vue 3, but still do things the "Vue 2" way? In other words, I see that Vue 3 has the new Composition API, but is that optional or the required way of doing things ...