Skip to content

[Due for payment 2025-10-03] [$250] [Selectors] Bundle A (~19) #70401

Closed

Description

@mountiny

Parent

This is a child of #70272

Background

Inline selectors passed to useOnyx break memoization by creating a new function identity every render, causing unnecessary recomputations and re-renders. We’re standardizing selectors as first-class citizens to unlock recent useOnyx memoization improvements.

Goal

Refactor all inline selectors in this scope to one of:

  • Shared selector: lives in src/libs/onyx/selectors/<domain>/... when reused across components.
  • Local selector: defined outside the component (same file) if only used by that file.
  • Contextual selector: created with useCallback (inside the component) only when it needs component data; dependency array must include that data.

Example implementation for the Session keys: #70264

Keys to handle

  • Policy - ONYXKEYS.COLLECTION.POLICY — 12
  • Expensify card settings - ONYXKEYS.COLLECTION.PRIVATE_EXPENSIFY_CARD_SETTINGS — 2
  • Priority mode - ONYXKEYS.NVP_PRIORITY_MODE — 2
  • Policy drafts - ONYXKEYS.COLLECTION.POLICY_DRAFTS — 1
  • Onboarding - ONYXKEYS.NVP_ONBOARDING — 1
  • Fund list - ONYXKEYS.FUND_LIST — 1
Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021968348529026952364
  • Upwork Job ID: 1968348529026952364
  • Last Price Increase: 2025-09-17
Issue OwnerCurrent Issue Owner: @
Issue OwnerCurrent Issue Owner: @

Activity

  1. self-assigned this
    on Sep 11, 2025
  2. added
    External
    on Sep 17, 2025
  3. changed the title [-][Selectors] Bundle A (~19)[/-] [+][$250] [Selectors] Bundle A (~19)[/+] on Sep 17, 2025
  4. melvin-bot commented on Sep 17, 2025

    @melvin-bot
  5. added
    Help Wanted
    on Sep 17, 2025
  6. melvin-bot commented on Sep 17, 2025

    @melvin-bot

    Current assignee @dukenv0307 is eligible for the External assigner, not assigning anyone new.

  7. added
    Daily
    and removed
    Weekly
    on Sep 17, 2025
  8. paulnjs commented on Sep 17, 2025

    @paulnjs
    Contributor

    Proposal

    Please re-state the problem that we are trying to solve in this issue.

    Refactor all inline selectors in this scope to one of:

    What is the root cause of that problem?

    What changes do you think we should make in order to solve the problem?

    Policy - ONYXKEYS.COLLECTION.POLICY — 12
    Expensify card settings - ONYXKEYS.COLLECTION.PRIVATE_EXPENSIFY_CARD_SETTINGS — 2
    Priority mode - ONYXKEYS.NVP_PRIORITY_MODE — 2
    Policy drafts - ONYXKEYS.COLLECTION.POLICY_DRAFTS — 1
    Onboarding - ONYXKEYS.NVP_ONBOARDING — 1
    Fund list - ONYXKEYS.FUND_LIST — 1

    Follow this PR, we can create a selector for each requirement key in this folder https://github.com/Expensify/App/tree/main/src/selectors and use this in all places.

    What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?

    undefined

    What alternative solutions did you explore? (Optional)

    Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.

  9. 33 remaining items

  10. zanyrenney commented on Oct 16, 2025

    @zanyrenney
    Contributor

    Still not working @paulnjs

    Image

    Hi there,

    All our other contributors are able to apply for Upwork jobs without issue. If your Upwork settings need updating, please take a moment to review and amend them. I’m currently unable to locate your profile, and in order to process payment, you’ll need to have applied to the job.

    The ongoing back and forth is causing a delay: it’s now been two weeks since payment was due. so I’d appreciate it if you could prioritise updating your Upwork settings and configuration. Getting this sorted will ensure you can continue collaborating smoothly with Expensify going forward.

    Thanks for taking care of this as soon as you can.

  11. paulnjs commented on Oct 17, 2025

    @paulnjs
    Contributor

    @zanyrenney I managed to apply to the job successfully.

    Thank you!

  12. melvin-bot commented on Oct 20, 2025

    @melvin-bot

    @carlosmiceli, @TMisiukiewicz, @zanyrenney, @dukenv0307, @paulnjs Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

  13. carlosmiceli commented on Oct 20, 2025

    @carlosmiceli
    Contributor

    Not overdue, finalizing payments.

  14. zanyrenney commented on Oct 23, 2025

    @zanyrenney
    Contributor

    Hey @paulnjs - have sent you the offer, please accept!

  15. paulnjs commented on Oct 23, 2025

    @paulnjs
    Contributor

    @zanyrenney Thanks a lot, the offer was accepted

  16. zanyrenney commented on Oct 28, 2025

    @zanyrenney
    Contributor

    payment summary

    @TMisiukiewicz does not require payment (Contractor)
    @dukenv0307 requires payment through NewDot Manual Requests - please request $250
    @paulnjs requires payment (Needs manual offer from BZ) - you have been paid $250 on upwork.

  17. quinthar commented on Jul 31, 2026

    @quinthar
    Contributor

    Approved $250 to @dukenv0307

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

Metadata

Metadata

Labels

Awaiting PaymentBugDailyExternal

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions