How to use `rememberSaveable` with `FocusRequester...
# compose
a
How to use
rememberSaveable
with
FocusRequester
? it gives me a crash.
z
What are you trying to do? It doesn't make sense to “save” a
FocusRequester
because it is essentially just an event bus.
a
I have a fragment containing list and search bar, searching about an item and click it to go to details fragment, so when return back I lost the focus on the search bar, I have to maintain the focus state after returning because there is another state depend on the focusing state.
z
You’d need to re-request the focus explicitly when you restore