How to use the shortest querystring key in stateMapping

In InstantSearch.js v4, a developer wants to use q as a querystring parameter key instead of the default key query. q is much more common than query, for example, Google (search), Twitter, and even Algolia community powered by Discourse here.

cf. singleIndex: https://www.algolia.com/doc/api-reference/widgets/single-index-state-mapping/js/

My implementation

Sadly and unfortunately, my PR algolia/instantsearch.js#4496 was rejected recently… :cry:

It might be because the description of the PR might be in the wrong way…