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

200
Views
reaccionar-seleccionar rebote después de ingresar la longitud mínima de caracteres

Estoy usando react-select para obtener nombres de búsqueda del servicio de back-end. Por lo tanto, necesito agregar rebote para mi campo de búsqueda y la API debe llamar después de ingresar la longitud mínima de caracteres (3) en el campo de texto.

Intenté lo siguiente, pero no mostrará los resultados en el menú desplegable.

 <AsyncSelect defaultOptions isClearable={true} className="form-control" id="search" loadOptions={(data) => { data.length >= 3 && loadOptions(); }} onChange={handleChange} /> const loadOptions = _.debounce((data, callback) => { fetchData(data).then((options) => { callback(options); }); }, DEBOUNCE_TIME); const fetchData = async (data) => { if (data) { const nameList = await request(METHOD.GET, `${API_URL.GET_BY_NAME}/${data}`); if (nameList.data) { return nameList.data.map((v) => ({ value: v.name, label: v.name })); } } };
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!