Skip to main content
Filter by
Sorted by
Tagged with
3 votes
0 answers
128 views

I am using Nuxt 2 with Pinia Composition API. Through a plugin, I have added axios instances, etc., into PiniaCustomProperties. const piniaPlugin = ({ $pinia, app }: { $pinia: any; app: any }): void =&...
iBird Rose's user avatar
0 votes
1 answer
44 views

Here's a reference I have an example structure that describes how I want this to look, but I don't know how to implement it. Here is a structure example <Modal ref="modal" @close="...
Your lovely monka's user avatar
4 votes
1 answer
1k views

I try to make drag and drop list with Draggable plugin, but depend how i assing new value in watcher from component(second code block) that's responsible of nesting it work only in one way Codesandbox ...
Damian Chudobiński's user avatar
0 votes
0 answers
978 views

I'm creating an application in Vue.js 3 + Pinia. I created an action that call - async function with await on axios call - an API to fill the whole store for a page, but don't work. Are there any ...
Deal With It's user avatar
0 votes
0 answers
207 views

I'm trying to find a way to update my query when the route changes (same component). The query is being selected using route meta data. Between Vue router's navigation guards, hooks, watching for ...
Quin's user avatar
  • 541
1 vote
1 answer
93 views

I am making the transition from Vue's Options API to the Composition API and for this purpose, I have put together a small Todo App. In App.vue I have: <template> <div id="app">...
Razvan Zamfir's user avatar
0 votes
0 answers
1k views

I created a dynamic form using Vue 3 that consists of five input text fields. Each input field should only accept a single-digit number. When a user enters a number in an input field, the focus should ...
mrbf's user avatar
  • 522
0 votes
1 answer
671 views

I am working on an application using the Quasar Framework along with Vue 3 (utilizing Composition API with syntax) and TypeScript. I am attempting to implement a Navigation Guard in my routes.ts file ...
Tolgahan Dayanikli's user avatar
0 votes
2 answers
846 views

I have a plugin with some functions inside. export default { install: (app:any) => { app.provide('translate', (translations:Array<Object>, key:string) => { let ...
Čamo's user avatar
  • 4,413
0 votes
0 answers
1k views

Currently working in Vue3 using Typescript, Vuetify, and the Composition API. I am also defining stores using Pinia. I am trying to call a getter method in another getter method, both of which are ...
Sandisz Thieme's user avatar
-1 votes
1 answer
417 views

I am trying to create a searchable table element where user can also search and filter the returned result. but i can't seem to get how to set the value in the computed property setter. but I keep ...
user3118363's user avatar
1 vote
1 answer
4k views

I have searched this issue and tried all the things but did not work for me. I am using Vue 3 ref and it needs to be updated after calling the Axios with the response but it is not getting updated ...
Bilal Maqsood's user avatar
5 votes
0 answers
377 views

Without relying on a third party package, what is the "correct" way to document my Vue 3 Single-File Components using the Composition API in a way that allows an IDE (in my case JetBrains' ...
KaptajnKold's user avatar
2 votes
0 answers
128 views

I'm expecting the result I get in Google chrome than Mozilla firefox, but in Mozilla firefox after using the quick-pivot library is painted differently in Mozilla firefox due to to mixing the ...
tsiPlus's user avatar
  • 425
0 votes
1 answer
363 views

I want to run a event before content load. I do it on Vue 3 option API wiht created() lifecycle hook but Now, I do it with Vue 3 Composition API. Code: <script setup> import { created } from &...
Monzur Alam's user avatar
0 votes
0 answers
144 views

If I remove all of the computed(()=>{}) definitions, i get back type inference. When I put them back, the store reverts back to type any. I loose all ts help in other files. I tried removing the ...
Robert Fankhauser's user avatar
1 vote
0 answers
666 views

I have a vue3/vite app that I have developed and deployed to my domain. Upon deploying and opening the page for the first time I am greeted with this error, after which upon refreshing it goes away: ...
honeypot11's user avatar
6 votes
2 answers
6k views

How to unit test methods in VUE 3 Composition API (using vitest (preferably) or jest), knowing that methods are not accesible/exportable directly from the <script setup lang="ts"></...
Sinisa Rudan's user avatar
  • 1,112
1 vote
1 answer
343 views

According documentation I made a helpres.ts plugin file with translate method which I would like to use inside components. import { useAppStore } from '@/store/app' export default { install: (app)...
Čamo's user avatar
  • 4,413
2 votes
1 answer
526 views

So I have an existing project where I wanted to add testing suite with jest + vue testing library. Added necessary libs and configs and jest basic calc sum test passes. After that importing basic vue ...
Perp's user avatar
  • 403
0 votes
2 answers
192 views

I have a button which would enable and disable based on the mandatory form fields. When the button is enabled, clicking would have the ripple effect. I want to add the ripple effect when the button is ...
Lahiru's user avatar
  • 1,758
0 votes
1 answer
232 views

I am trying to apply DDD to a Vue project (so it's DDD on the frontend) and I have a doubt as to where store a props type. A Vue component can have props, which is basically named data passed to the ...
Bernardo Benini Fantin's user avatar
0 votes
1 answer
539 views

i am currently try to expose an template ref with defineExpose for using that template ref in useElementSize composable. But as the documentation tells "(refs are automatically unwrapped just ...
MrSpt's user avatar
  • 1,105
1 vote
1 answer
779 views

I am encapsulating some Apollo mutations in a Composable in Vue to allow the functionality to be reused in multiple components however for one instance, I need to know what the parameters of the ...
overbyte's user avatar
  • 668
0 votes
1 answer
171 views

I'm trying to convert all Option API codes to Composition API codes because in this app, there are codes that use Option and there are codes that use Composition. I want to make them equal so I'll ...
user avatar

1 2 3
4
5
34