So I was trying to get what was killing my performance in my timeline and it seems it's coming from Custom header, however it's slow even if nothing's in it.
I have a custom header as a child inside Timeline component like so:
If anyone had this problem, solution came to my mind after few hours of head scratching , just change export default CustomDateHeader or however it's called to export default React.memo(CustomDateHeader)
So I was trying to get what was killing my performance in my timeline and it seems it's coming from Custom header, however it's slow even if nothing's in it.
I have a custom header as a child inside Timeline component like so:
My CustomDateHeader component:
If anyone had this problem, solution came to my mind after few hours of head scratching , just change
export default CustomDateHeader
or however it's called to export defaultReact.memo(CustomDateHeader)