Skip to content

Migrate searchPatternType to global store

Administrator requested to merge fkling/28008-migrate-searchpatterntype into main

Created by: fkling

As with previous, similar PRs, this one removes searchPatternType from the root component state and moves into the query state store.

To help with migrating/removing the prop type from the components I split (and renamed) the interface into two parts, SearchPatternTypeProps and SearchPatternTypeMutationProps.

I also introduced a new helper for building search URLs from the current state, buildSearchURLQueryFromQueryState. It fills in missing values from the current query state. This allows components to generate such URLs without having to subscribe to the store.

Merge request reports

Loading