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);
|
setIsSearching(true);
|
||||||
setSearch([]);
|
setSearch([]);
|
||||||
searchText.current = text;
|
searchText.current = text;
|
||||||
offset.current = 0;
|
offset.current = 0;
|
||||||
await load();
|
load();
|
||||||
}, 500);
|
}, 500);
|
||||||
|
|
||||||
const onCancelSearchPress = () => {
|
const onCancelSearchPress = () => {
|
||||||
|
|
Loading…
Reference in New Issue