Hi there,
I am using connectHierarchicalMenu to integrate it to an Ant design Menu component.
Instant search is built on nextjs with getServerSideProps.
On page render the items props looks like this:
1: {label: "Distribution", value: "Distribution", count: 272, isRefined: false, items: null}
2: {label: "Back Office & Finance", value: "Back Office & Finance", count: 75, isRefined: false, items: null}
Is it possibility to make all items’ nested items directly accessible rather than dynamically after the selected item has been refined?
I would be looking for something like this (change in nested “items”):
[
{
label: "Distribution",
value: "Distribution",
count: 272,
isRefined: false,
items: [
{label: "foo", ...},
{label: "bar", ...}
]
},
{
label: "Back Office & Finance",
value: "Back Office & Finance",
count: 75,
isRefined: true,
items: [
{label: "foo", ...},
{label: "bar", ...}
]
}
Hope my question is clear enough.
In any cases, I love using Algolia, thank you so much.