Skip to content

Look up Search snapshot member keys directly in useOnyx #107164

Closed

Description

@mountiny

Problem

When the App useOnyx redirected a member key read (for example report_X) to a Search snapshot, it called getDataByPath. That function ran a startsWith check against every ONYXKEYS.COLLECTION prefix and rebuilt a key string that always equals the original key. This work ran on every render of every redirected read.

Solution

Remove getDataByPath and look up the key directly in the snapshot data. The result is identical, and each read now costs one property lookup.

PR

#106407

Issue OwnerCurrent Issue Owner: @adhorodyski

Activity

  1. melvin-bot commented on Nov 18, 2026

    @melvin-bot

    @mountiny @adhorodyski

    The solution for this issue has been 🚀 deployed to production 🚀 in version 9.5.41-2 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions