mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 22:17: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) {
|
||||
// Clear search field when navigating away
|
||||
onDispose { triggerSearch("") }
|
||||
onDispose { setSearchQuery("") }
|
||||
}
|
||||
|
||||
var searchActive by remember { mutableStateOf(false) }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue