vuex Questions
5
Solved
I'm testing a Single file component that uses vue router to watch $route. The problem is that I can't get the test to both change the route and trigger the watcher's function.
The test file:
imp...
Napkin asked 15/12, 2017 at 15:32
8
Im not able to build my project (created with js, vue.js, vuex) on iOS platform. Exactly the same project works on web while typing npm run dev and I was able to build it on Android on laptop with ...
3
Solved
I'm trying to write a unit test for the logic within Vue's mounted() lifecycle hook, but not having much luck. The problem seems to be that mounted() never gets called when the component is mounted...
Custodian asked 10/5, 2018 at 17:49
4
Solved
I have an UnsavedChangesModal as a component that needs to be launched when the user tries to leave the page when he has unsaved changes in the input fields (I have three input fields in the page)....
Grannie asked 25/7, 2017 at 4:18
1
We use pinia to manage app state. As it's mentioned in title, I'm looking for NuxtServerInit hook analogue for pinia.
A little context: User lands on First page of form; Form calls (f.e.) state.get...
2
Solved
I am trying to initalize a project with Vue3 and typescript, but after adding vuex to the project, it won´t compile.
What I did:
First I created the project with create-vue, using the recommend op...
Oriane asked 7/5, 2023 at 21:3
3
Solved
I want to have console logging while I'm developing in Vue.js but want it disabled for production.
There is a module vuejs-logger that works fine inside of a Vue component and will be disabled in p...
Retinoscopy asked 11/3, 2020 at 10:56
3
Solved
i have similar architecture in my app.
computed(){
someStoreValue = this.$store.someStoreValue;
}
watch() {
someStoreValue() = async function () {
//do some async action
}
},
methods: {...
Devanagari asked 31/7, 2020 at 8:33
3
Solved
I have project with nested custom elements. Now I need to vuex & vue router. How I can use this packages from root custom element and then use in all child custom elements?
Currently I tried on...
Alinealinna asked 2/11, 2021 at 9:30
2
Solved
I am getting this strange error from Vue when trying to access get request from api using axios,
I am getting "TypeError: Cannot read property 'get' of undefined"
<template>
<...
Overspread asked 29/8, 2020 at 21:16
2
I have a Laravel, VueJs, VueRouter, Vuex application using Webpack to compile my assets.
package.json
{
"private": true,
"scripts": {
"dev": "npm run developme...
Ihs asked 19/1, 2023 at 5:11
7
For very specific reasons, I have set the vue dev tools to true in production.
Vue.config.devtools = true
Am using the following versions:
"vue": "^2.5.2"
"vuex": "^3.0.1"
"vuetify": "^1.0.0"
...
Kuroshio asked 21/6, 2018 at 17:24
6
Solved
Is there a way to pass parameter into getter of vuex store?
Something like:
new Vuex.Store({
getters: {
someMethod(arg){
// return data from store with query on args
}
}
})
So that in comp...
Telangiectasis asked 6/1, 2017 at 10:20
6
Solved
I have started implementing Vuex in my application and I decided to split my store into modules.
For the beginning I created only one module to test how Vuex modules works because I didn't have any...
Primero asked 5/11, 2018 at 22:58
6
Solved
I have a component with some form validation. It is a multi step checkout form. The code below is for the first step. I'd like to validate that the user entered some text, store their name in the g...
Effie asked 7/9, 2017 at 22:32
6
Solved
I'm using the vue-cli scaffold for webpack
My Vue component structure/heirarchy currently looks like the following:
App
PDF Template
Background
Dynamic Template Image
Static Template Image
Markd...
Ovariectomy asked 3/11, 2016 at 20:7
7
In my Vue+Vuex project, I am trying to debug using Visual Studio Code. I have the debugger launching properly using Chrome debug tools, and properly using a map, but when I try to place breakpoints...
Wizardly asked 8/6, 2018 at 17:0
9
Solved
I'm building this Vue 2 app, and I keep reading that one should use Vuex State management, in the beginning I didn't quite understand it's concept, but now after playing around with Vue, I can see ...
Mercurous asked 17/4, 2017 at 23:46
5
How is it possible to access store data in beforeEnter which is retrieved asynchronously via the store action?
import store from './vuex/store';
store.dispatch('initApp'); // in here, async data ...
Overspill asked 3/3, 2017 at 13:2
5
I'm building a web app using Nuxt v2.15 and @nuxtjs/i18n v7.2. I'm using Vuex for state management. In my global state, I want to create a getter that returns a value based on this.$i18n.locale.
Wh...
Synesthesia asked 30/1, 2022 at 1:7
7
Solved
Just like in main.js, I'm trying to access my store from a helper function file:
import store from '../store'
let auth = store.getters.config.urls.auth
But it logs an error:
Uncaught TypeErr...
Chairman asked 14/12, 2017 at 17:45
5
Solved
I have two modules in my vuex store.
var store = new Vuex.Store({
modules: {
loading: loading
posts: posts
}
});
In the module loading, I have a property saving which can be set either true o...
12
Solved
My Vue component is like this :
<template>
<div>
<div class="panel-group"v-for="item in list">
<div class="col-md-8">
<small>
Total: <b>{{ item.total }}<...
Schach asked 4/4, 2017 at 13:1
3
Solved
I'm doing everything by the docs, but, still having an error in the console. What I'm trying is to create a global variable of a Firebase instance.
main.js:
import { createApp } from "vue"...
Thessa asked 17/12, 2020 at 18:58
5
Solved
I'm new to vue, so I'm probably making a rookie error.
I have a root vue element - raptor.js:
const Component = {
el: '#app',
store,
data: {
productList: store.state.productlist
},
beforeCreate:...
Tripper asked 12/2, 2017 at 20:28
1 Next >
© 2022 - 2024 — McMap. All rights reserved.