News for hackers. Stuff that matters.
Re:When does React re-render? Explaining rerenders and how t... by jsf01 on Wednesday April 29, 2020 @07:22PM (#23025767)
Because the only update occurring is the changing of text in an input. Yet due to how React works it’s diffing a much larger tree.
Re:When does React re-render? Explaining rerenders and how t... by baddox on Thursday April 30, 2020 @03:07AM (#23028224)
Are you sure there isn’t a slow server request happening before the UI update? I would be very surprised that you’re regularly encountering web sites with noticeably slow React reconciliation. It’s difficult to make that slow.
Re:When does React re-render? Explaining rerenders and how t... by ng12 on Wednesday April 29, 2020 @10:33PM (#23026906)
The diffing is very fast. It would take a ridiculously large tree to start running up against the limits of v8.