You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Hi there,
useMap
anduseSet
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 theuseForceUpdate
hook which is used to trigger rendering in bothuseMap
anduseSet
.The text was updated successfully, but these errors were encountered: