We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Just tried to imeplement ToDo app with useReducer pattern. With React.memo, I found a huge limitation in the current implementation.
If tracking finds both todo object and todo.id are used, todo is checked for ref equality in memo, we have false negatives (no render).
todo
todo.id
More investigation needed. (Like why js-framework-benchmark is working.)
There are two issues.
onChange={() => dispatch({ type: 'TOGGLE_TODO', id: todo.id })}
<TodoItem key={todo.id} todo={todo} />
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Just tried to imeplement ToDo app with useReducer pattern.
With React.memo, I found a huge limitation in the current implementation.
If tracking finds both
todo
object andtodo.id
are used,todo
is checked for ref equality in memo, we have false negatives (no render).More investigation needed. (Like why js-framework-benchmark is working.)
There are two issues.
The text was updated successfully, but these errors were encountered: