Skip to content

How to update only specific rows in v7 #2340

Answered by thefaded
thefaded asked this question in General
Discussion options

You must be logged in to vote

Generally, I would say only React.memo with custom equalityCheck function works, nothing else. I found solution here – #1496

But the main problem I think is that there are a lot of useless posts/comments/articles about that React is fast and you don't have to optimise anything in your components, as we can see reference to Kent C. Dodds article in the link above. If I'm saying it's slow, it mens it's slow and don't say that it's fast.
Why my table with 2k cells must be re-rendered if only single row is changed? I should go and optimise render function/component? Hell no, react must re-render only single row/cells what really updated, not everything, it's React job.
With re-rendering whole…

Replies: 4 comments 9 replies

Comment options

You must be logged in to vote
5 replies
@robgwin
Comment options

@divmgl
Comment options

@muroa96
Comment options

Comment options

You must be logged in to vote
3 replies
@tannerlinsley
Comment options

@arichiardi
Comment options

@User6531
Comment options

Answer selected by thefaded
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@dcmwong
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet