You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[HOLD for payment 2024-11-14] Migrate MapView to useOnyx #50343
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.58-2 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
@Ollyws@twisterdotcom The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]
Activity
melvin-bot commentedon Oct 7, 2024
Triggered auto assignment to @twisterdotcom (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.neil-marcellini commentedon Oct 7, 2024
@janicduplessis is going to take this one since he touched the code that prompted the error.
janicduplessis commentedon Oct 7, 2024
I will take this!
Shahidullah-Muffakir commentedon Oct 7, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
We are trying to migrate the MapView component from using the withOnyx HOC to the newer useOnyx hook.
What is the root cause of that problem?
The current implementation uses withOnyx, which is an older pattern for connecting components to Onyx data.
What changes do you think we should make in order to solve the problem?
In this file:
App/src/components/MapView/MapView.website.tsx
Line 35 in ba9af8f
Add this code inside the component to get userLocation:
cretadn22 commentedon Oct 7, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
Migrate MapView to useOnyx
What is the root cause of that problem?
NA
What changes do you think we should make in order to solve the problem?
App/src/components/MapView/MapView.tsx
Lines 301 to 304 in d03066f
We need to remove the withOnyx and use
const [userLocation] = useOnyx(ONYXKEYS. USER_LOCATION);What alternative solutions did you explore? (Optional)
janicduplessis commentedon Oct 8, 2024
@Shahidullah-Muffakir proposal looks good if you want to take this over.
Shahidullah-Muffakir commentedon Oct 8, 2024
@janicduplessis ,Sure, I can submit a PR. Thank you.
5 remaining items
neil-marcellini commentedon Oct 30, 2024
Assigning @Ollyws as C+
[-]Migrate MapView to useOnyx[/-][+][HOLD for payment 2024-11-14] Migrate MapView to useOnyx[/+]melvin-bot commentedon Nov 7, 2024
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Nov 7, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.58-2 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
If no regressions arise, payment will be issued on 2024-11-14. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Nov 7, 2024
@Ollyws @twisterdotcom The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]
melvin-bot commentedon Nov 14, 2024
Payment Summary
Upwork Job
BugZero Checklist (@twisterdotcom)
Ollyws commentedon Nov 14, 2024
Requested in ND.
garrettmknight commentedon Nov 26, 2024
$250 approved for @Ollyws