Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

2.4K
Views
Returning array instead of proxy in vue js

im new to vuejs and ive been struggling with trying to use the array of companies that has been assigned the response.data eventhough it has been used normally before.

export default{
    name:"companies-list",
    data(){
        return{
            companies: [],
            currentCompany: null,
            currentIndex: -1,
            id:"",
            search:'',
            isEmpty:'true',
            rows: []
            
        };
    },


         retrieveCompanies(){
            CompanyService.getAllCompanies()
            .then(response =>{
                this.companies = response.data;
                console.log(response.data);
            })
            .catch(e=> {
                console.log(e);
            });
        },


 mounted(){
        this.retrieveCompanies();
        console.log(this.companies);
    }

Here the console.log(this.companies) returns a proxy with an empty array. I'm trying to assign the contents of the companies that contain the companies from the retrieveCompanies() method to the empty rows[] array so that i can perform a filter on the rows according to the properties of the companies such as id and name. Thank you in advance.

about 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!