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

639
Views
React SPFX component Error: Minified React error #31

I have used dataList to store and display data into table. Below is the initialization for the same.

const [dataList, setDataList] = useState([]);

While I am trying to update item in dataList and assign new updatedDataList array to it I am getting below error

Error: Minified React error #31; and thus my U.I. is not re-render

Below is my update function call.

const updateDataObj = (item) => {         
  let updatedDataList = dataList.map((ele) => {
    console.log("ele...", ele);
    if (ele.ID === item.ID) {
      const newDataList = {
        ...ele,
        ...item,
      };         
      return newDataList;
    }
    return { ...ele }
  });     
setDataList(updatedDataList);
}).catch((err) => {
  console.log("err...", err)
 });
}
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!