fix unnecessary rerenders
This commit is contained in:
1 parent
5b1fbf8817
commit
de01a430a3
3 files changed
+51
-23
No files matched your search
@@ -132,6 +132,7 @@ const Search = ({
|
||||
}
|
||||
return filtered;
|
||||
}}
|
||||
getOptionKey={(option) => option.id}
|
||||
renderOption={(props, option) => {
|
||||
const { key, ...optionProps } = props;
|
||||
return (
|
||||
|
||||
Reference in new issue
Block a user