(uiState)
| 77 | stateMapping: { |
| 78 | // @ts-expect-error - This is a valid function signature |
| 79 | stateToRoute(uiState) { |
| 80 | const index = uiState[indexName]; |
| 81 | const result = { |
| 82 | query: index.query, |
| 83 | // RefinementList facets |
| 84 | ...(index.refinementList?.subsets |
| 85 | ? { subsets: index.refinementList.subsets.join(',') } |
| 86 | : {}), |
| 87 | // Menu facets |
| 88 | ...(index.menu?.category ? { category: index.menu.category } : {}), |
| 89 | // Variable toggle |
| 90 | ...(index.toggle?.variable === true ? { variable: true } : {}), |
| 91 | // Sortby map |
| 92 | ...(index.sortBy ? { sort: sortMap[index.sortBy] } : {}), |
| 93 | }; |
| 94 | return result; |
| 95 | }, |
| 96 | // @ts-expect-error - This is a valid function signature |
| 97 | routeToState(routeState) { |
| 98 | const subsets = parseSubsets(routeState.subsets); |
nothing calls this directly
no outgoing calls
no test coverage detected