Skip to content

attributesToSnippet - [Autocomplete] #821

Answered by Haroenv
Ekeu asked this question in Q&A
Discussion options

You must be logged in to vote

For using a nested attribute, you need to use the array form of attribute like this: <components.Snippet hit={hit} attribute={['product', 'value']} />

Thanks for making this discussion, as it seems the documentation isn't totally clear on the difference between string and array

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Ekeu
Comment options

Answer selected by Ekeu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants