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
useSet manipulate a JS Set but useMap manipulate a plain object. Also, I don't find a hook that can manipulate a JS Map like useSet. It seems like this is inconsistent in API design
thanks
The text was updated successfully, but these errors were encountered:
https://github.com/kitze/react-hanger#usemap
This one manipulates Map. Feel free to copy-paste into your project or use as a dependency, but with react-use already in codebase, I would recommend copy-paste actually :)
Hi all! @react-hookz/web, the new library by one of react-use's former maintainers (background here and here) has purposely implemented its hooks to return the same reference object on every render, for every hook, including useSet and useMap.
useSet
manipulate a JSSet
butuseMap
manipulate a plain object. Also, I don't find a hook that can manipulate a JSMap
likeuseSet
. It seems like this is inconsistent in API designthanks
The text was updated successfully, but these errors were encountered: