gundb-react-hooks icon indicating copy to clipboard operation
gundb-react-hooks copied to clipboard

Fix update state in `removeFromSet`

Open timolins opened this issue 2 years ago • 0 comments

First of all, thanks for this great library. Exactly what I needed.

I'm using the useGunCollectionState() hook and noticed that elements didn't disappear after calling the removeFromSet function.

After some investigation I noticed that no event gets dispatched in that case.

I'm not entirely sure if denounce handler should be used, let me know.

timolins avatar Sep 11 '21 00:09 timolins