vuex Questions

2

Solved

I have a ClientManagePage where I display client information and allow for the removal of the displayed client. The vue-router route configuration for that page looks like this: { path: '/client...
Preceding asked 25/5, 2019 at 10:13

2

Solved

I am experiencing a few issues regarding reactivity in my application. I have a Vuex store where I have an object 'songs' containing 'song' objects where the key is their id. For each song object w...
Burley asked 8/9, 2020 at 1:0

3

Solved

I'm making a session API call in main.js and using values from the response as the initial value for my root store. In vuex it's handled this like, DataService.getSession() .then((sessionData) =&g...
Jourdain asked 23/3, 2022 at 7:7

1

Solved

I have a list of cars. Each item of that list has all the information about some of the cars. Also each item is a parent component to many other components - image, price, characteristics, etc - al...
Main asked 20/11, 2021 at 11:25

4

Solved

At work, I got some little insight to nuxtjs development and I got very interested in it. So, I started developing on my own a little bit, but now, I'm stuck with my finished project. To develop,...
Natoshanatron asked 5/7, 2019 at 5:23

2

Solved

The problem I need to solve: I am writing a little vue-app based on VueJS3. I got a lot of different sidebars and I need to prevent the case that more than one sidebar is open at the very same time...
Sateia asked 12/7, 2021 at 17:54

7

I know the solution is update the prop data like this : this.selectedContinent = "" But I want to use another solution After I read some reference, the solution is : this.$forceUpdate() I tr...
Capapie asked 14/9, 2017 at 5:37

3

could you explain Vue template vs Vue function jsx, what is different of it ? which one is good for use ? Ex : I have two components : Component1.vue <template> <div> <p>{{mes...
Aldine asked 4/3, 2021 at 0:48

9

Solved

i am new to vue.js, just coming from react.js. the problem i am facing with the vue loader didn't happened at first. but from the second time the app crashes from starting the server. npm run serv...
Yockey asked 20/8, 2020 at 11:58

4

Solved

Hi I created a login action (using Vuex) which saves a users jwt token to local storage. Inside this login action I call another action to fetch some posts which this user created. It works complet...
Drice asked 11/6, 2021 at 12:39

5

Solved

When a user tries to directly navigate load a component url, an http call is made in my vuex actions, which will define a value in my state once it resolves. I don't want to load my component unti...
Gadgeteer asked 13/6, 2019 at 19:59

4

Solved

I am trying to use a Vue.js plugin inside of a Vuex Store module. In a component, I am able to call it like this: this.$plugin(). However, in a module, this is not set. I thought Vue.$plugin() wou...
Lobule asked 22/11, 2017 at 16:49

1

Solved

I am trying to figure out how to type vuex modules in a vue 3 typescript project. The official documentation is lacking in this area. Assume I have a project like this: import { createStore, useSto...
Chanda asked 19/2, 2022 at 17:30

7

Solved

Can't find anything to solve this seemingly obvious issue. Just upgraded from Vue 2 to Vue 3 and Vuex with Typescript. this.$store doesn't seem to be accessible, despite following the Vue 3 instruc...
Acanthocephalan asked 18/10, 2020 at 10:28

5

Solved

I declare a global variable in the main.js of the Vue.js project. Vue.prototype.$API = "myapihere" And I want to use this from everywhere. and it's work properly by using this.$API. But in Vuex...
Kerri asked 2/3, 2020 at 15:29

3

Solved

I'm working on bringing the functionality of Vue.js, into the WordPress ecosystem, and my first project is for Search and Filtering on a page. Because the main website is being rendered initially...
Ana asked 29/8, 2019 at 17:25

2

Solved

i have this error when run my app : WARNING Compiled with 1 warnings 11:50:40 PM warning in ./src/store/store.js "export 'createStore' was not found in 'vuex' I installed vuex by npm install...
Acquittal asked 4/12, 2020 at 20:31

3

Solved

I have a props that i want to use to make a dynamic mapGetters but the the mapGetters sees the props as undefined, probably because the computed is loaded before the props. Do anybody know how i ca...
Shortage asked 30/9, 2018 at 12:31

4

Solved

Anybody knows how to use mapState or mapGetters with Vue 3 in the setup function ? I know that is possible to use the store with the useStore hook but with this hook We import all the store while w...
Chalmer asked 2/8, 2020 at 13:46

1

I'm using Typescript in my Vuex component and would like to provide types to the mapping functions in mapState. Intuitively, I wrote it like this: @Component({ computed: { ...mapState( MY_NAMESP...
Berar asked 3/3, 2020 at 15:36

5

I have a component story that requires an API call performed by an ACTION from my Vuex store. However, the store can't be found by Storybook: Unhandled promise rejection TypeError: "this.$store is ...
Borderline asked 20/6, 2019 at 9:0

7

I have app where user can login in different roles, eg. seller, buyer and admin. For each user I'd like to show dashboard page on the same path, eg. http://localhost:8080/dashboard However, each us...
Nissie asked 16/12, 2019 at 16:22

2

Solved

I'm building a login component using vue, vuex and vuetify. I've decided to use a namespaced auth module in store and this is causing me the problem. I'm approaching this using TDD. My e2e test wo...
Erratum asked 25/4, 2020 at 19:20

2

I'm looking for a reusable way to display a full page loader (Sidebar always visible but the loader should cover the content part of the page) till all necessary api fetches has been done. I've got...
Celom asked 16/12, 2021 at 9:14

2

Solved

I'm currently trying to internationalize my vue 3 vite project with "@intlify/vite-plugin-vue-i18n". The problem I am facing here, is that i currently have to import and setup the t varia...
Aekerly asked 21/3, 2021 at 13:14

© 2022 - 2024 — McMap. All rights reserved.