Replies: 1 comment
-
This was my mistake, cached data was being aggressively loaded instead of the fresh data and the issue was due to some state management config I had. Everything is working fine on the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
EDIT: not an issue, see #2047 (comment)
I am unsure how to properly pass dynamic data to the
Combobox
component. My use case is fetching remote data that is then passed asitems
in a group to theCombobox
. This kind of works, except that the state is always one step behind. For example, if I type in a value into theCombobox
input, the data is properly fetched and updated but theCombobox
content container only shows the results once I change the input again, rather than immediately even though the data is available (hydrated in the app) as soon as the search term is entered. In other words, the search input andCombobox
results are always out of sync.Zag has a
setCollection
method in its Combobox Machine API that works for this use case, but I am unsure if this is currently possible to use with Ark UI.Does anyone have an example of remote/async/dynamic data being used with
Combobox
? Example of what I'm trying to achieve: https://react-select.com/home#asyncA user in the Zag Discord reported a similar (Zag-specific) use case: https://discord.com/channels/964648323304808488/964648323304808496/1157104763779948637
Beta Was this translation helpful? Give feedback.
All reactions