Replies: 5 comments 8 replies
-
Do you have a reproduction? |
Beta Was this translation helpful? Give feedback.
-
I'll try to build one - this code base (mine) has too many moving parts. |
Beta Was this translation helpful? Give feedback.
-
A little progress.. maybe. I turned off my virtual sortby widget. Now since there isn't a widget mounted for sortby I get the I'm doing something wrong in my virtual widget, but what... |
Beta Was this translation helpful? Give feedback.
-
The unset is occurring at the moment this call happens const sb = useSortBy({items: [
{ label: 'byName', value: indexName },
{ label: `byDistance`, value: `${indexName}_distance` },
]
}) |
Beta Was this translation helpful? Give feedback.
-
I have a smoking gun... In file node_modules/instantsearch.js/es/widgets/index/index.js And got this log...
So the unset is happening here during the addition of the hits widget. I'm using the Algolia default Hits component. I'll continue working to find the exact call and try to determine a fix. |
Beta Was this translation helpful? Give feedback.
-
I have a working state mapper and it sets the sortBy for my index correctly. However, the next time stateToRoute gets called the value becomes undefined. I have a valid sortBy widget, so I just don't get this.
Beta Was this translation helpful? Give feedback.
All reactions