-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Chore: Remove getStateFromPath patch
#65072
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
Merged
mountiny
merged 2 commits into
Expensify:main
from
software-mansion-labs:chore/remove-getstatefrompath-patch
Jul 4, 2025
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
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
361 changes: 0 additions & 361 deletions
361
patches/react-navigation/@react-navigation+core+7.10.0+002+getStateFromPath.patch
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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.
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.
@staszekscp I don't understand this change, This is a major route change imo, did we get this approved? so from now for manual request instead of the route :
create/create/start/1/3269280911335422/manual, we will have a simplemanualroute in the URL? , is this assumption correct?, also is this the same for quick actions, what are the steps exactly to test this url change?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.
The
routefield is used in the linking config. The difference now is that we don't usepath: exact. We need to do this because some parameters need to be passed to the screen and some to its parent navigator.You can see that this part
:action/:iouType/start/:transactionID/:reportID/distanceis common for all screens. We used this path for the parent navigator as path exact and added the rest in the config for its screens, likedistance/:backToReport?You can see that getRoute still has the whole
create/${iouType as string}/start/${transactionID}/${reportID}/distance/${backToReport ?? ''}TLDR: The visible URL in the browser will stay the same. We only changed where the params will be available from
useRoute()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.
@adamgrzybowski So to confirm, I believe we user the full
create/${iouType as string}/start/${transactionID}/${reportID}/distance/${backToReport ?? ''}in some messaging to deeplink to the flow. That will still work?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.
Checked and its using
/start/submit/distanceso should be ok