useKeys()
The useKeys()
hook subscribes to changes in the collection keys. Your component will re-render whenever items are added or removed, providing an up-to-date list of all item keys in the collection.
The useKeys()
hook subscribes to changes in the collection keys. Your component will re-render whenever items are added or removed, providing an up-to-date list of all item keys in the collection.