Skip to content

Dependent keys are not working as expected when using withOnyx #27906

@tgolen

Description

@tgolen

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Action Performed:

  1. In EditRequestPage, remove the several withOnyx and join everything in one
  2. Add a console.log to check the value of the prop policy
  3. Make a money request in a workspace and try to edit the description
  4. Check that the policy is always null
  5. If you add a console.log to the key callback of the parentReport, the report used will always be undefined.

Expected Result:

The policy and parentReport is populated correctly

Actual Result:

The policy and parentReport are undefined.

Workaround:

This can be worked around by nesting several calls to withOnyx()

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android / native
  • Android / Chrome
  • iOS / native
  • iOS / Safari
  • MacOS / Chrome / Safari
  • MacOS / Desktop

Version Number: v1.3.72-5
Reproducible in staging?:
Reproducible in production?:
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Expensify/Expensify Issue URL:
Issue reported by: @BeeMargarida
Slack conversation:

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0193a31795e8e571af
  • Upwork Job ID: 1704656762098425856
  • Last Price Increase: 2023-09-21

Metadata

Metadata

Labels

BugSomething is broken. Auto assigns a BugZero manager.DailyKSv2InternalRequires API changes or must be handled by Expensify staffReviewingHas a PR in review

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions