-
Notifications
You must be signed in to change notification settings - Fork 3.9k
refactor: PureReportActionItem, reduce prop drilling and onyx subs #90631
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
9f35346
0927cac
066fe9b
05d256a
ae146ba
7d8bc16
d7bbd31
1f274d2
0d50771
06457c0
4a1637b
f3892bc
febb20f
2a3af7d
f438dd0
b17c66f
f33d705
5c74fb2
7822f9c
80a7e30
c9fdcd4
121d01a
5db1919
1822fbe
7eb6ca5
6b1ddb0
22421f7
61707c4
f845447
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -125,10 +125,7 @@ function MoneyRequestReportActionsList({onLayout}: MoneyRequestReportListProps) | |
|
|
||
| const parentReportAction = useParentReportAction(report); | ||
|
|
||
| const [userBillingFundID] = useOnyx(ONYXKEYS.NVP_BILLING_FUND_ID); | ||
| const personalDetails = usePersonalDetails(); | ||
| const [tryNewDot] = useOnyx(ONYXKEYS.NVP_TRY_NEW_DOT); | ||
| const isTryNewDotNVPDismissed = !!tryNewDot?.classicRedirect?.dismissed; | ||
| const [introSelected] = useOnyx(ONYXKEYS.NVP_INTRO_SELECTED); | ||
| const [betas] = useOnyx(ONYXKEYS.BETAS); | ||
|
|
||
|
|
@@ -568,11 +565,7 @@ function MoneyRequestReportActionsList({onLayout}: MoneyRequestReportListProps) | |
| shouldHideThreadDividerLine | ||
| linkedReportActionID={linkedReportActionID} | ||
| personalDetails={personalDetails} | ||
| userBillingFundID={userBillingFundID} | ||
| isReportArchived={isReportArchived} | ||
| isTryNewDotNVPDismissed={isTryNewDotNVPDismissed} | ||
| reportNameValuePairsOrigin={reportNameValuePairs?.origin} | ||
| reportNameValuePairsOriginalID={reportNameValuePairs?.originalID} | ||
| isHarvestCreatedExpenseReport={shouldShowHarvestCreatedAction} | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why is isHarvestCreatedExpenseReport computed at the list level instead of inside the child?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We can skip drilling |
||
| /> | ||
| ); | ||
| }, | ||
|
|
@@ -586,11 +579,7 @@ function MoneyRequestReportActionsList({onLayout}: MoneyRequestReportListProps) | |
| firstVisibleReportActionID, | ||
| linkedReportActionID, | ||
| personalDetails, | ||
| userBillingFundID, | ||
| isTryNewDotNVPDismissed, | ||
| isReportArchived, | ||
| reportNameValuePairs?.origin, | ||
| reportNameValuePairs?.originalID, | ||
| shouldShowHarvestCreatedAction, | ||
| ], | ||
| ); | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.