fix: back button bounces user back into selected business #31
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "schwifty/fix-back-button-bounce"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Tapping Back from ScanView takes you to the business list, but then immediately re-navigates into the same business.
Root Cause
BusinessListView.loadBusinesses()runs on.task(every mount) and checksAppPrefs.lastBusinessId— which was saved when the user selected the business. So it auto-selects the same business instantly.Fix
AppPrefs.lastBusinessIdinbackToBusinessList()skipAutoNavflag to also prevent the single-business auto-select from firing when user explicitly went backTest Plan
🤖 Generated with Claude Code