mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-15 00:37:03 +05:30
fix(android): avoid triggering another useless search API call
This commit is contained in:
parent
0c0506b6d7
commit
9fd2d9f17b
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ fun SearchList(
|
||||||
}
|
}
|
||||||
DisposableEffect(true) {
|
DisposableEffect(true) {
|
||||||
// Clear search field when navigating away
|
// Clear search field when navigating away
|
||||||
onDispose { triggerSearch("") }
|
onDispose { setSearchQuery("") }
|
||||||
}
|
}
|
||||||
|
|
||||||
var searchActive by remember { mutableStateOf(false) }
|
var searchActive by remember { mutableStateOf(false) }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue