useSize()
The useSize()
hook subscribes to changes in the collection size. Your component will automatically re-render whenever items are added or removed from the collection.
The useSize()
hook subscribes to changes in the collection size. Your component will automatically re-render whenever items are added or removed from the collection.