13,666 questions
5
votes
1
answer
4k
views
Template render vs render function h() in Vue 3
What do you think regarding template rendering in Vue 3 (or in composition-api), especially how fast and light it would be?
We create a site constructor with simple components under the hood (...
198
votes
9
answers
347k
views
How to watch props change with Vue Composition API / Vue 3?
While Vue Composition API RFC Reference site has many advanced use scenarios with the watch module, there are no examples of how to watch component props.
Neither is it mentioned in Vue Composition ...
6
votes
1
answer
6k
views
Set data object to value from Promise in Vue 3
I'm trying to set the data() value in a Vue instance to a value retrieved from a Promise that is returned from a mongodb api call. I'm able to retrieve the data I'm trying to implement, however am ...
5
votes
4
answers
3k
views
Best practices for easy migration from VueJS2 to VueJS3?
I am currently developing a web frontend of an enterprise application with vuejs 2 and vuetify 2. The plan is to migrate to Vuejs 3 after the release.
Are there any coding pattern which should be ...
0
votes
1
answer
449
views
Vuejs: How to set props value in async import loading?
I am trying to set a loading component for my imported async component.
This works, but I would to change the 'color' props of this component before mounting it.
How can I achieve that ?
<script&...
8
votes
4
answers
11k
views
How can I make a value in Vue.js non-reactive?
In my Vue.js app, I have an array value that should only be updated when a user completes a specific "refresh" action. However, as soon as I assign a new value to that array value, the array value ...
4
votes
2
answers
6k
views
VueJS props - How can i avoid "class" attribute inheritance?
VueJS auto inherit Non-Prop Attributes, it's great for data-* attributes.
But we don't want to inherit "class" & "style" attributes to save our core-components from any layout ...
64
votes
3
answers
185k
views
Vue.js run a code in mounted and again for restart functionality
I am creating a game in VueJS, where, when the page loads, I want a method to fire, make an ajax call to an external API and create a bunch of data properties. When the player wins the round, I want ...