Commit 2e09db4
committed
feat: add automatic sync on MainScreen resume
- Add lifecycle observer to detect when MainScreen is resumed
- Automatically trigger data sync when app returns to foreground
- Import lifecycle dependencies (LocalLifecycleOwner, Lifecycle, LifecycleEventObserver)
- Use DisposableEffect for proper lifecycle observer cleanup
- Improve user experience with fresh data when returning to app
- Handle app backgrounding, screen lock, and navigation scenarios1 parent f78bff0 commit 2e09db4
1 file changed
Lines changed: 17 additions & 0 deletions
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
13 | 16 | | |
14 | 17 | | |
15 | 18 | | |
| |||
51 | 54 | | |
52 | 55 | | |
53 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
54 | 71 | | |
55 | 72 | | |
56 | 73 | | |
| |||
0 commit comments