fix(hits): rename the exposed "hits" to "items" #6212
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Replace the exposed
hits
withitems
for consistency with recommend, transformItems and other widgets that all returnitems
.hits
of course still works for now, butitems
is also available from the connectors.Result
As well as
hits
,items
is also available from connectHits, connectInfiniteHits (connectGeoSearch already only haditems
)There's no warning for using
hits
, as there's no way to have that in a way which doesn't warn for regular usage too.For now, no change is done in
ui-components
, but I'm happy to do so if we're happy with the hypothetical breaking change for that package.