-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Onyx bump to v3.0.61 #85919
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
Onyx bump to v3.0.61 #85919
Changes from all commits
033019d
1ecf384
d20ea68
0469bf4
f3dcbd4
df0c9df
b1f7458
141c5f5
883bbba
de38729
cd7121e
618f157
55f88ce
c9d3996
6083a9c
4daa23d
e0583c3
3d33800
d2aba26
37bb95f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,3 @@ | ||
| import {useIsFocused} from '@react-navigation/native'; | ||
| import type {ListRenderItem} from '@shopify/flash-list'; | ||
| import React, {useCallback, useMemo, useRef, useState} from 'react'; | ||
| import type {LayoutChangeEvent} from 'react-native'; | ||
|
|
@@ -123,9 +122,7 @@ function MoneyRequestReportPreview({ | |
| selector: hasOnceLoadedReportActionsSelector, | ||
| }); | ||
| const newTransactions = useNewTransactions(hasOnceLoadedReportActions, transactions); | ||
| const isFocused = useIsFocused(); | ||
| // We only want to highlight the new expenses if the screen is focused. | ||
| const newTransactionIDs = isFocused ? new Set(newTransactions.map((transaction) => transaction.transactionID)) : undefined; | ||
| const newTransactionIDs = new Set(newTransactions.map((transaction) => transaction.transactionID)); | ||
|
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.
Useful? React with 👍 / 👎.
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. This was explained here: Expensify/react-native-onyx#724 (comment)
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.
This is also mentioned in the Test steps (step 5), it highlights correctly on all of the platforms |
||
|
|
||
| const transactionPreviewContainerStyles = [styles.h100, reportPreviewStyles.transactionPreviewCarouselStyle]; | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.