The todo example doesn't pass the render efficiency test #998
Unanswered
tylerlong
asked this question in
Bug report
Replies: 1 comment 7 replies
-
|
It's probably because you pass the entire <TodoRow key={todo.id} todoId={todo.id} /> |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Bug Description
Please check the test report: https://github.com/tylerlong/todo-render-efficiency/tree/valtio
I copied the code from here https://github.com/pmndrs/valtio/tree/main/examples/todo
I applied
React.memo toTodoRowto reduce the number or re-renders.There is still one test case failed. Please help, thanks.
Reproduction Link
https://github.com/tylerlong/todo-render-efficiency/tree/valtio
Beta Was this translation helpful? Give feedback.
All reactions