Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

71
Vistas
Input Fields lagging in React

I am a beginner at frontend and not even sure if this is the right place to ask this question but a developer has created a react app and when data is thrown into the input field via a bluetooth device(like barcode scanner), it lags too much sometimes.

https://drive.google.com/drive/folders/1LFqGhp1HyEMnyzO16W8KlG8_tJcXTrOr?usp=sharing

The videos will help in better understanding of the problem. and the following is the code:

<Form.Item name="rfId" label="">
  <Input
    key={`input-${selectedSerialKey}`}
    disabled={!selectedWarehouse || status !== statusValues.start}
    placeholder="Enter RFID"
    value={currentSerialText}
    onChange={handleRFIDChange}
  />
</Form.Item>;

Is there any option where I dont show the scanned data being filled in the input field and show it directly to the table. I am thinking this might save the time. or if someone can guide me what topic should I search to tackle this?

const handleRFIDChange = (e) => {
  setCurrentSerialText(e.target.value);
};

const onAddSerial = (e) => {
  if (selectedSerialKeyRef.current !== null && findSerial) {
    setClearText((prev) => prev + 1);
    setSerials(
      serials.map((item) => {
        if (item.$key === selectedSerialKeyRef.current && findSerial) {
          return {
            ...item,
            serial: currentSerialTextRef.current,
          };
        } else {
          return item;
        }
      })
    );
    setSelectedSerialKey(null);
  } else {
    setClearText((prev) => prev + 1);
    setSerials((prev) =>
      removeDuplicateItems(
        [
          ...prev,
          { serial: currentSerialTextRef.current, $key: Math.random() },
        ],
        "serial"
      )
    );
  }
  forceRerender();
  // setCurrentSerialText('');
};

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda