search.ts 344 B

1234567891011121314
  1. export const setQueryString: ReducerFuncType = (state, { payload }) => ({
  2. ...state,
  3. queryString: payload,
  4. });
  5. export const setCurrentIndex: ReducerFuncType = (state, { payload }) => ({
  6. ...state,
  7. currentIndex: payload,
  8. });
  9. export const setMatchesMap: ReducerFuncType = (state, { payload }) => ({
  10. ...state,
  11. matchesMap: payload,
  12. });