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

135
Views
¿Cómo isEqual de lodash devuelve verdadero al comparar dos objetos que tienen funciones en Javascript/React?

Estoy tratando de entender por qué/cómo se hace realidad esta comparación. Como sé, si hay funciones en los objetos, nunca serán iguales porque cada vez que los padres representan sus referencias cambian. ¿Por qué esto es igual?

 // _.isEqual comes from lodash shouldComponentUpdate(nextProps){ const myQuestion = _.isEqual(nextProps, this.props) // this is getting true and my question for this line return !_.isEqual(nextProps, this.props) }
 // this is my props { "dispatch": function(){}, "saveHeaderSettings": function(){}, "buttonFormat": "absolute", "externalUpdateEnable": false, "isEditModeAllowed": true, "isVisiblePivotView": false, "isWorkInSubsetEnabled": false, "mode": 0, "rowUpdateEnable": false, "updateMode": 0, "updateModes": { "isVisibleCellUpdate": true, "isVisibleRowUpdate": true, "isVisiblePopupUpdate": true } }

PD: los métodos de dispatch and saveHeaderSettings provienen de mapDispatchToProps de Redux

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!