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

124
Views
objectObject problem related to array of parameters

I apologize in advance for if I'm not using the right terminology.

Basically I'm facing a problem with object filters in getStats within this function below.

const handleRefresh = React.useCallback(() => {
  getFruitList();
  getStats({ type: tab ? "Seedless" : "Seed", filters });
}, [tab, getFruitList, getStats], filters);

The response I aimed to get after calling handleRefresh goes something like

type: Seed
color: Red
shape: Round

But instead I'm getting this

type: Seed
filters: [object Object]

I tried to use JSON.stringify and toString() but it does not work.

Any advise on how to resolve this would be greatly appreciated. Thanks in advance.

about 4 years ago · Juan Pablo Isaza
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!