-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
[Perf] ReportScreen rendering optimisation part 2 #30354
Merged
thienlnam
merged 11 commits into
Expensify:main
from
kacper-mikolajczak:perf/report-screen-tti-2
Nov 2, 2023
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
1b5ad38
BaseUserDetailsTooltip
kacper-mikolajczak d8ee1fb
TaskPreview
kacper-mikolajczak fe8c194
withCurrentUserPersonalDetails
kacper-mikolajczak 87cb616
Merge branch 'main' into perf/report-screen-tti-2
kacper-mikolajczak 1945ce6
add missing function execution
kacper-mikolajczak bd84424
Merge branch 'main' into perf/report-screen-tti-2
kacper-mikolajczak b4a9f5d
resolve aliases in CurrentUserPersonalDetails
kacper-mikolajczak 2a77766
fix prettier issues
kacper-mikolajczak d35caae
merge main
kacper-mikolajczak 87916f6
swap || to ??
kacper-mikolajczak 0543ad1
add waiter in UnreadIndicatorsTest
kacper-mikolajczak File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is against https://github.com/Expensify/App/blob/main/contributingGuides/STYLE.md#accessing-object-properties-and-default-values
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@eVoloshchak For TS files I think we should adhere to these nullish-coalescing rules 👍
Here is an example that is directly line below code you've mentioned:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Answered by Jack already.
It was mostly trial and error process, but what I found out is that there is a race condition in the test that did not make the tests in any case deterministic (sometimes on test failed, another time two of them failed). In this case
waitForBatchedUpdatesWithAct
helps by waiting for next "tick". Jokingly, we could say that the code now is too fast :DIt was caused by this PR
Hope that answers your concerns 👍