Skip to content
New issue

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

useMap and useSet don't trigger component render after adding an even amount of items #90

Open
AlexKrupko opened this issue Jun 25, 2023 · 0 comments

Comments

@AlexKrupko
Copy link

AlexKrupko commented Jun 25, 2023

Hi there,
useMap and useSet hooks don't trigger component render after adding an even amount of items.
You can find a code example here - https://codesandbox.io/s/unruffled-flower-kh57rp?file=/src/App.js
This happens because of using boolean value in the useForceUpdate hook which is used to trigger rendering in both useMap and useSet.

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

No branches or pull requests

1 participant