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

69
Views
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
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!