-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Closed
Labels
InternalRequires API changes or must be handled by Expensify staffRequires API changes or must be handled by Expensify staffMonthlyKSv2KSv2Task
Description
Problem
These methods are anti-patterns because they are most always used for loading data into a component without using withOnyx(). This breaks the data flow of a react application. (data is coming from somewhere that is not props or state and cannot be debugged in react dev tools).
Solution
Switch all references to properly use withOnyx() for components and connect() for libs.
Components
- MoneyRequestHeader @tgolen Refactor how data is loaded into the edit request page #28645
- OptionRowLHNData @tgolen Refactor OptionRowLHNData to remove deprecated getLinkedTransaction() method #35975
- EditRequestPage @tgolen
-
SplitBillDetailsPage - extractAttachmentsFromReport @tgolen Remove sideloading of Onyx data for attachment modal #30866
- [payment due 2023-12-13] [$500] Remove sideloading of Onyx data for avatar with display name #32309
- [HOLD for payment 2023-12-18] Remove sideloading of Onyx data forMoneyRequestView.js #32443
- FlagCommentPage @tgolen Remove deprecated methods and refactor code to be a little cleaner #33676
- ReportScreen @tgolen Load parent report action from withOnyx in ReportScreen #33970
- ReportActionItem @tgolen Load parent report action from withOnyx in ReportActionItem #34057
-
ReportActionListNo longer references deprecated methods - withReportAndReportActionOrNotFound @tgolen Load parent report action from withOnyx in report action HOC #34113
-
ComposerWithSuggestions @tgolenalready removed\ -
MoneyRequestView@tgolen [NO QA] Remove use of deprecated function when showing violations on a transaction #37703 -
HeaderView@tgolen Refactor HeaderView to access parentReportAction from props #37913 -
ReportActionsListItemRenderer@tgolen Remove deprecated method and pass down parentReportAction #37449 - FlagCommentPage
getParentReport()@tgolen Refactor FlagCommentPage to access parent report directly from Onyx #38356 - [PAID] [$500] Update getIOUReportActionDisplayMessage() to accept the transaction as a parameter #38355
- [PAY 29/04] [$250] Remove deprecated
ReportActionUtils.getAllReportActions()method #39091 - [HOLD for payment 2024-07-10] [HOLD for payment 2024-07-02] [$500] Remove exported
ReportUtils.getReport()#40316
Libs
-
IOUalready removed - Task @tgolen Remove the side-loading of data in Task action from the ReportActionUtils #37340
- TransactionUtils @tgolen Remove deprecated methods from transaction utils that sideload data from Onyx #38258
- ReportUtils
- [HOLD for payment 2024-04-15] [$250] Remove deprecated
ReportUtils.getPolicy()method #38959
Upwork Automation - Do Not Edit
- Upwork Job URL: https://www.upwork.com/jobs/~0156f7187832f56740
- Upwork Job ID: 1762552955483959296
- Last Price Increase: 2024-02-27
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
InternalRequires API changes or must be handled by Expensify staffRequires API changes or must be handled by Expensify staffMonthlyKSv2KSv2Task