Open ElHamster opened 5 years ago
That's correct, I didn't write this guide, but the custom widget would need to add the following APIs:
getWidgetState(uiState, { searchParameters })
getWidgetSearchParameters(searchParameters, { uiState })
This can be seen in e.g. the official menu connector:
Ok i'm not really sure how I should implement this. Because in the menu there is only one attribute to manage and for the dynamic faceting a number of X (in my case over 1000) for the URL. Yes i can built it up with the attribute "dynamic_facetting" but in the url i need the real attributes like price, size, brand etc.
Hi,
when i try to activate the routing option for instantsearch the widget doesn't add the refinement to the url.
Fork from your example with routing on: https://codesandbox.io/s/p96k2xm8w0
Maybe you can add this to your example.