Track Button Not Updating After Reconnection (State Not Refreshed)

XMLWordPrintable

    • Type: Bug
    • Resolution: Done
    • Priority: High
    • 2.0
    • Affects Version/s: None
    • None
    • STOP TB Sprint 5

      When the app goes into offline mode (camp disconnected), the CTA button changes to “Track” (used for manual entry in offline mode), which is expected behavior.

      However, when the camp gets connected again (online mode), the button still remains “Track” instead of updating back to the appropriate state (e.g., “Pending” / “Refer for X-ray” / status-based button).

      The button state only gets corrected after logging out and logging back in.

      Steps to Reproduce:

      1. Open Digital Chest X-ray and True Nat module
      2. Ensure camp is connected (online mode)
      3. Disconnect the camp (go offline)
      4. Observe button changes to Track (expected)
      5. Reconnect the camp (online mode)
      6. Observe the button state

      Actual Behavior:

      • Button remains “Track” even after reconnection
      • UI does not refresh automatically
      • Correct state appears only after logout/login

      Expected Behavior:

      • Button should automatically update based on connectivity status
      • On reconnection, it should revert to the correct state (e.g., Pending / Refer / status-based CTA)
      • No need for logout/login to refresh UI

              Assignee:
              Nidhi Saini
              Reporter:
              Nidhi Saini
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: