remove await from load
This commit is contained in:
parent
68e9a3aef7
commit
b2b3faa9a7
|
@ -82,12 +82,12 @@ const DiscussionsView = ({ navigation, route }: IDiscussionsViewProps): React.Re
|
|||
}
|
||||
};
|
||||
|
||||
const onSearchChangeText = useDebounce(async (text: string) => {
|
||||
const onSearchChangeText = useDebounce((text: string) => {
|
||||
setIsSearching(true);
|
||||
setSearch([]);
|
||||
searchText.current = text;
|
||||
offset.current = 0;
|
||||
await load();
|
||||
load();
|
||||
}, 500);
|
||||
|
||||
const onCancelSearchPress = () => {
|
||||
|
|
Loading…
Reference in New Issue