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
fix(core): trigger invariant when user doesn't return anything from getItems (#607)
* fix: trigger invariant when user doesn't return anything from getItems
* tests: test invariant when not returning from getItems
* fix: remove pre-resolve invariant
* feat: check that every item is truthy in post-resolve invariant
* fix: rmeove unused dependency
* feat: add sourceId in error message
* feat: use second invariant for undefined items
* feat: add link to docs in invariant
'[Autocomplete] The `getItems` function from source "source1" must return an array of items but returned undefined.\n\nDid you forget to return items?\n\nSee: https://www.algolia.com/doc/ui-libraries/autocomplete/core-concepts/sources/#param-getitems'
0 commit comments