Skip to content

[Due for payment 2026-02-04][To-do counters] Release 2: Update Search page to use live Onyx data if available #73977

@luacmartins

Description

@luacmartins

Release 2: Update Search page to use live Onyx data if available

Next, we'll update the Onyx snapshot system (which is used by all Reports pages) to use live Onyx data if available.

  1. In App, update the useOnyx hook with the following
    1. Get original live Onyx data
    2. Get snapshot search data if we can use snapshot data, i.e.
const canUseSnapshot = isOnSearch && !!currentSearchHash && isSnapshotCompatibleKey;
  1. Combine the results of a and b, always overriding snapshot data with live Onyx data, i.e. {...snapshotData, …originalData}
  2. Return the combined data
  3. We already use the useOnyx wrapper throughout the App, so this change is enough to update all instances of Search data to use live Onyx data first and then fallback to snapshot data.
Issue OwnerCurrent Issue Owner: @heyjennahay

Metadata

Metadata

Labels

Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions