We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9274d99 commit 85c386aCopy full SHA for 85c386a
src/lib/components/SearchBar/SearchBar.js
@@ -103,8 +103,8 @@ SearchBar.defaultProps = {
103
// NOTE: Adding the key prop, will recreate the SearchBar in order to update
104
// state with the latest redux queryString value.
105
// https://reactjs.org/blog/2018/06/07/you-probably-dont-need-derived-state.html#recommendation-fully-uncontrolled-component-with-a-key
106
-const SearchBarUncontrolled = ({ queryString, ...props }) => (
107
- <SearchBar key={queryString} {...props} />
+const SearchBarUncontrolled = ( props ) => (
+ <SearchBar key={props.queryString} {...props} />
108
);
109
110
SearchBarUncontrolled.propTypes = {
0 commit comments