React-admin: a lot of wasted render cycles according to react-addons-perf

Created on 6 Feb 2018  路  2Comments  路  Source: marmelab/react-admin

I used https://reactjs.org/docs/perf.html#printwasted at the start of my admin-on-rest based application and after a short navigation of 10 or so steps. I printed the results of wasted render cycles that state wasn't even changed and it seems that there is a lot of room for improvement. Any thoughts on this?

image

Thanks!

Admin-on-rest version: 1.3.4
react-addons-perf": "^15.4.2

enhancement

Most helpful comment

We'll look into it

All 2 comments

We'll look into it

react-addons-perf was discontinued and does not handle React 16 (cf https://reactjs.org/docs/perf.html#printwasted).

We do regular profiling sessions using the Chrome DevTools, and fix the most obvious rerenders.

Was this page helpful?
0 / 5 - 0 ratings