[BTAPP-45] Reload budget data when app resumes from background #54

Merged
chris merged 2 commits from feature/BTAPP-45 into main 2026-06-27 23:40:23 -06:00
Owner

Ticket

BTAPP-45 Reload budget data when app resumes from background

Summary

  • Added useAppForeground hook (app/lib/hooks/app-foreground/) that fires a callback whenever the app transitions from background to the foreground via React Native’s AppState API.
  • Wired the hook into TransactionsScreen to invalidate the ["budget"] query cache on foreground, triggering a background refetch so newly processed transactions are immediately visible.
## Ticket [BTAPP-45](http://192.168.2.100:7123/home/browse/BTAPP-45/) Reload budget data when app resumes from background ## Summary - Added `useAppForeground` hook (`app/lib/hooks/app-foreground/`) that fires a callback whenever the app transitions from background to the foreground via React Native’s `AppState` API. - Wired the hook into `TransactionsScreen` to invalidate the `["budget"]` query cache on foreground, triggering a background refetch so newly processed transactions are immediately visible.
[BTAPP-45] Invalidate budget query when app returns to the foreground.
All checks were successful
app / check (pull_request) Successful in 20s
plane-sync / sync (pull_request) Successful in 1s
02ef6f1723
chris merged commit acbfb439dc into main 2026-06-27 23:40:23 -06:00
chris deleted branch feature/BTAPP-45 2026-06-27 23:40:23 -06:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
chris/budget-tracker!54
No description provided.