All Questions
7
questions
0
votes
1
answer
76
views
myRef.value is holding a Proxy even tho it should hold a simple array
I am doing a simple app that fetches data (my tasks) from my PocketBase(BaaS like Firebase).
I want to store my tasks into a ref because it could change overtime (ex: user modify the name of it).
I am ...
0
votes
0
answers
31
views
How to get data from a Proxy Array in Javascript? [duplicate]
I am making a request via Axios to a REST API made in LARAVEL 9, this is my Backend that sends them via JSON to the frontend.
public function index()
{
try {
$marcas = DB::table('marca')-&...
0
votes
1
answer
34
views
How do I roll back the values of the items or collections after an unexpected error?
<q-select v-model="item" :options="colect">
<q-input v-model="item.name">
const colect = ref([... ])
const item = ref({... })
The dilemma is that, when ...
1
vote
1
answer
640
views
Class Reactivity with Proxy does not work as expected in Vue 3
I have a Class with a proxy-based object, the set() method changes another property of the same class, everything works fine if I run the code only in JS/TS.
class Form {
errors = []
values = {...
0
votes
1
answer
4k
views
Iterating over a Proxy in Vue Composition API
I have a computed value emptyRowsRemoved derived from the Reactivity API. I need to iterate over this value. But because computed() returns a proxy, I am no longer able to iterate over it with a ....
1
vote
1
answer
3k
views
How to update a property in Inertia.js and Vue.js?
I am trying to update a property list in Vue.js using Inertia.js:
props: {
list: {
type: Object,
default: {}
}
},
updateTable(filters) {
axios.post(route('updateList'), ...
34
votes
5
answers
57k
views
Vue Array converted to Proxy object
I'm new to Vue. While making this component I got stuck here.
I'm making an AJAX request to an API that returns an array using this code:
import axios from 'axios';
export default {
data() {
...