Hi, using react-instantsearch-hooks-web
and on page loading, I’m trying to set refinements based on query parameters.
const attributes = Object.keys(queryParametersObject)
attributes.forEach((attribute) => {
useRefinementList({ attribute, operator: 'or' })
})
There is a better way to set refinements on landing and avoid the loop?