Empty state for Autocomplete #7801
Unanswered
fellipeutaka
asked this question in
Q&A
Replies: 2 comments 3 replies
-
|
I'm facing the same issue |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
I'm facing the same issue For hours, I've been trying to create a component where I can dynamically filter data from my api to show categories, I choose the
I would expect the ReactNode passed in |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm migrating from
cmdkto the newAutocompletecomponent from RAC while trying to keep the same API. One of the challenges I'm facing is implementing the<Command.Empty />component, which should be rendered when no items are found.However, I'm struggling to access the collection size inside
<Command.Empty />. I'm attempting to consumeMenuStateContext, but it returnsnull.Here’s a simplified version of my implementation:
And here’s how it’s being used:
Summary:
MenuStateContextis returningnullinside<Command.Empty />, even though it's rendered within<Command.List>, which is effectively a wrapper around theMenucomponent from React Aria.<Command.Empty />have access to theMenuStateContext?<Command.Empty />?Any guidance would be greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions