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
Describe the bug I have a large list of items, each item with its own state. So, I have the Item component with code like this:
Item
function Item() { const { showContextMenu } = useContextMenu() return ( <div onContextMenu={showContextMenu([ { key: 'action', onClick: () => alert('action'), }, ])} > Test </div> ) }
When I click the right mouse button on one of the items, the whole list (each item) re-renders.
Expected behavior Only the clicked item re-renders.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered:
Unfortunately I cannot deal with this at the moment, but I'm more than open to a PR addressing the issue!
Sorry, something went wrong.
No branches or pull requests
Describe the bug
I have a large list of items, each item with its own state. So, I have the
Item
component with code like this:When I click the right mouse button on one of the items, the whole list (each item) re-renders.
Expected behavior
Only the clicked item re-renders.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: