-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
fix: Migrate withReportAndReportActionOrNotFound from withOnyx to useOnyx #49460
Merged
thienlnam
merged 26 commits into
Expensify:main
from
etCoderDysto:useOnyx-migration-notfound
Oct 7, 2024
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
07b78ce
Use useOnyx for report
etCoderDysto b882c6d
fetch parentReport with useOnyx
etCoderDysto 8398950
fetch reportMetadata and use it in WithReportOrNotFound
etCoderDysto 7e3931c
fetch isLoadingReportData
etCoderDysto a65f34f
fetch betas
etCoderDysto 242103d
fetch policies using useOnyx
etCoderDysto ca1e4e5
fetch reportAction
etCoderDysto 77cbc79
fetch parentReportAction
etCoderDysto 1649082
Change props.report with report
etCoderDysto dc936ba
remove withOnyx usage
etCoderDysto cc065e8
fix lint and typecheck
etCoderDysto 84472ba
Merge branch 'main' into useOnyx-migration-notfound
etCoderDysto ddb8c9e
pass only props used by other components
etCoderDysto aa98328
Remove OnyxProps, and add type for props passed to FlagComment
etCoderDysto 0329631
change reportAction with linkedReportAction and pass it to wrapped co…
etCoderDysto 5a63090
fix type issue for withReport
etCoderDysto 5ca151b
use reportAction in FlagCommentPage
etCoderDysto f70dfaf
apply suggested changes and remove useOnyx
etCoderDysto 26f1d07
simplify selector for parentReportActions
etCoderDysto 0398b3f
Don't pass reportActions to wrapped component
etCoderDysto ae366bb
fix conflict with main
etCoderDysto 2a2c70a
Merge branch 'main' into useOnyx-migration-notfound
etCoderDysto 3702c9a
fix type error caused from conflict
etCoderDysto 93dd702
Use logical or to get IOUTransactionID safely
etCoderDysto b656710
fix typo on COLLECTION.SPLIT_TRANSACTION_DRAFT
etCoderDysto 94f75b5
use ternay operator instead of or
etCoderDysto 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
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.
Wrong condition is set here, If
parentReportID
is undefined it is still concatenating to onyx key, resulting inreport_undefined
key.#50786