Skip to main content

All Questions

Tagged with
0 votes
1 answer
127 views

Form submit and on:click from the same button in SvelteKit

I'm trying to implement a "follower" functionality for an app. I have a table in my DB to track which Users are following which, and on each user's page, I want there to be a button to ...
ShashComandur's user avatar
1 vote
1 answer
215 views

How to listen to specific changes in an object key

I'm writing a svelte code in which I have an object that contains attributes of a HTML element. I want to listen to changes in the object to be able to modify the element in the DOM. However, I ...
App Scripter's user avatar
2 votes
1 answer
374 views

Vue 3 data not retreactive

i've been trying to upgrade from Vue 2 to 3 for months and I'm having trouble with a data property not being reactive. The parent component has this: <component :class="parentBlock....
cbloss793's user avatar
  • 1,649
0 votes
1 answer
143 views

Why does non-reactive variable behave strange in Vue3?

Here is the code <template> <input type="button" value="click" @click="clickBtn"/> <div id="reactiveDiv">{{ reactiveVariable }}</div>...
James's user avatar
  • 169
1 vote
1 answer
574 views

Pinia error: "getActivePinia()" was called but there was no active Pinia. Did you forget to install pinia?

Even though I have an action that changes the 'pending' state depending on if the data was already fetched (which makes it already reactive), when I use it inside of the component, reactivity doesn't ...
Michael's user avatar
  • 319
0 votes
1 answer
85 views

Vue js 3 Reactivity confused with data change methods in component api

hi guys i have a quick question about changing the data in vue3 reactive data let me show you my code so you get what is the idea const packageInfo = reactive({ data:[] }) this is my code sample ...
Mobinkh's user avatar
  • 109
0 votes
1 answer
161 views

Why the result of VueUse.useMouse() without reactive?

I use VueUse.useMouse(), when I moving mouse, the results in console.log() will change, but the results in <span></span> always 0, I really can't understand, can anyone tell me why ? 😫😫😫...
XJ.Chen's user avatar
  • 135
0 votes
1 answer
821 views

Vue3 Dynamic Component Return Props

Messing around with Vue3's Dynamic Component <component>, and I have this current setup: Component 1: <template> <div> <h1> Input name: </h2> <Input :model=&...
guyman's user avatar
  • 187
1 vote
1 answer
110 views

VUE3 data is not reactive

I have a simple HTML element with an @click event on it. When I press on a tag, in the VUE console, the value didn't update, but, in Google Chrome Inspect Element Console, the idClient value it shows. ...
kevx's user avatar
  • 89
1 vote
1 answer
883 views

Svelte reactivity and multiple dependencies - proper method of waiting until all dependences are present?

I am frequently running into situations where I have reactive statements that depend on multiple variables. Svelte does not wait to assign exported variable values from the calling component before ...
Paul W's user avatar
  • 9,871
0 votes
1 answer
74 views

hiw push data into object of array of object

i wanna ask about how to push/replace data to objec of array of objects, sorry bout ma graamaar hehe. this my dummy data : const dummyData = { id: 1, daerah: "Bandung", ...
irahama's user avatar
  • 45
0 votes
1 answer
1k views

Reactive Store variables in Svelte: undefined?

very simple attempt to get reactive vars from the store. In my App.svelte: import { config } from "./store/config.js"; $: config = $config || {}; In my ./store/config.js: import { writable }...
Vasili's user avatar
  • 23
2 votes
2 answers
5k views

reactive Vue component not updating on data change

I'm new to Vue and trying to display a list of "notes" which update when a button is hit (I've just hardcoded the value to add for now). The trouble is that after I add a new item to the ...
StuP's user avatar
  • 55
1 vote
1 answer
544 views

Dexie Live Query and Service Worker

I want to use Dexie within the service worker to sync my data. I also want to use useLiveQuery hook in the React frontend. Would Dexie automatically update the query if new data gets written in the ...
Joachim's user avatar
  • 23
3 votes
2 answers
828 views

Reactivity of primitives using reactive in Vue 3

According to the docs, primitives shouldn't become reactive when using reactive wrapper, that's why in this case we should go with ref. The same situation is when we want to reassign the entire object ...
Nimroth's user avatar
  • 33

15 30 50 per page
1
2 3 4 5