Skip to content

Commit

Permalink
Preserve saveable values on config change
Browse files Browse the repository at this point in the history
  • Loading branch information
veyndan committed Sep 28, 2023
1 parent 17915ef commit c81912a
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -423,9 +423,7 @@ private class ViewContentCodeBinding<A : AppService>(
override fun performSave(id: String) {
appScope.launch(app.dispatchers.zipline) {
val state = treehouseUiOrNull?.snapshotState() ?: return@launch
appScope.launch(app.dispatchers.ui) {
app.stateStore.put(id, state)
}
app.stateStore.put(id, state)
}
}

Expand Down

0 comments on commit c81912a

Please sign in to comment.