-
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
Reapply - Add offline search functionality for addresses #43011
Changes from all commits
8ffcb6b
e81675e
d039eb0
89492f6
cab7692
7257198
838218d
6b11184
ea52a61
fbb2d4a
bb1dff8
1b3a5ef
6f1994e
875bf49
0a17153
e07f641
a5d2f9b
0333496
f1c0d53
a56370d
13eb028
fdadd5f
27c9233
785a45f
4920a65
0b5bbe3
363ab6f
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 |
---|---|---|
|
@@ -252,10 +252,10 @@ export default withWritableReportOrNotFound( | |
recentWaypoints: { | ||
key: ONYXKEYS.NVP_RECENT_WAYPOINTS, | ||
|
||
// Only grab the most recent 5 waypoints because that's all that is shown in the UI. This also puts them into the format of data | ||
// Only grab the most recent 20 waypoints because that's all that is shown in the UI. This also puts them into the format of data | ||
// that the google autocomplete component expects for it's "predefined places" feature. | ||
selector: (waypoints) => | ||
(waypoints ? waypoints.slice(0, 5) : []).map((waypoint) => ({ | ||
(waypoints ? waypoints.slice(0, CONST.RECENT_WAYPOINTS_NUMBER as number) : []).map((waypoint) => ({ | ||
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. @neil-marcellini @arosiclair @eVoloshchak, this has caused a regression. Can you pls confirm whats the expected fix for that? I think we can slice the 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. Not a bug, it's working as desired as explained in that regression issue here |
||
name: waypoint.name, | ||
description: waypoint.address ?? '', | ||
geometry: { | ||
|
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.
Coming from #48643. If user is online, the filtered predefined places will briefly appear before the server returns the result. :)