Closed joepio closed 1 year ago
The defaultValue in sortBy should be removed from the type (that's the dom property), as value is set by the library.
To set initial values you can either use routing or initialUiState
Thanks @Haroenv, that worked just fine!
🐛 Bug description
First off: this library is amazing, and you should feel proud.
In
react-instantsearch-dom
, I used theSortBy
component and passed it adefaultRefinement
to set a custom default sort attribute. This prop is no longer available, and I haven't yet found an alternative approach in doing the same thing.There is a
defaultValue
prop in theSortBy
component, though, but for some reason that does not seem to do anything.Environment
"react-instantsearch-hooks-web": "^6.38.0",