Closed IvanVolkov42 closed 2 years ago
Can you create what you have so far in a sandbox environment? We have a template available for that purpose here. Thanks!
@Haroenv while creating example i found the reason of my problem: https://codesandbox.io/s/compassionate-diffie-61v3x4?file=/src/app/app.component.ts as you can see i define in config index "actors" and then in html use actors and players as ais-index and routing not working, but if in config change index name to instant_search routing starts to working. So the question is why can't i use one of index names, that i will actually search in, as index name in config? In case of using instant_search as a index in config looks like strange, because i want to search in other collections(actors and players)
@Haroenv Sorry, i just understoud, that i was using indexes wrongly:) Will close issue
Hi, i am trying to use stateMapping like this:
I use search in two collections companies and workers via ais-search-box, so if enter in searchbox text and trigger search, it searchs in both collections, but ?q parameter not passed to URL. But if manually add ?q=test to URL and click on it, after page reloaded it passed to searchbox throw routeToState and search is triggered in both collections and query parameter passed to searchbox. So if i look on my uiState, it looks like this: companies: {} workers: {query: 'test'} i don't know why it's working in case routeToState and don't working in case stateToRoute i am using "algoliasearch": "^4.11.0", "instantsearch.js": "^4.32.0", "angular-instantsearch": "^4.0.1",