Skip to content

Commit

Permalink
Fix weather tool when navigating back
Browse files Browse the repository at this point in the history
  • Loading branch information
kylecorry31 committed Apr 20, 2024
1 parent 4b9d7a4 commit da21861
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -216,15 +216,15 @@ class WeatherFragment : BoundFragment<ActivityWeatherBinding>() {
override fun onUpdate() {
super.onUpdate()

effect("chart", history, rawHistory) {
effect("chart", history, rawHistory, lifecycleHookTrigger.onResume()) {
displayPressureChart(history, rawHistory)
}

effect("list", weather) {
effect("list", weather, lifecycleHookTrigger.onResume()) {
updateList()
}

effect("forecast", weather) {
effect("forecast", weather, lifecycleHookTrigger.onResume()) {
inBackground {
updateForecast()
}
Expand Down

0 comments on commit da21861

Please sign in to comment.