Revert "Refactor subscription size page to use useSubPage hook"#82136
Conversation
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
@arosiclair looks like this was merged without a test passing. Please add a note explaining why this was done and remove the |
|
straight revert |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f48d1958c1
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| const onFinished = () => { | ||
| updateSubscriptionSize(subscriptionSizeFormDraft ? Number(subscriptionSizeFormDraft[INPUT_IDS.SUBSCRIPTION_SIZE]) : 0, privateSubscription?.userCount ?? 0); | ||
| Navigation.goBack(ROUTES.SETTINGS_SUBSCRIPTION_SETTINGS_DETAILS); | ||
| Navigation.goBack(); |
There was a problem hiding this comment.
Keep a fallback route when finishing subscription resize
Switching onFinished to Navigation.goBack() makes the save flow a no-op when this screen is opened directly (for example from a bookmarked/deep link URL) because goBack() returns early when there is no back stack (src/libs/Navigation/Navigation.ts, !canGoBack() branch). The previous goBack(ROUTES.SETTINGS_SUBSCRIPTION_SETTINGS_DETAILS) ensured users always land on subscription settings after saving, so this change can leave users stuck on the confirmation page after pressing Save.
Useful? React with 👍 / 👎.
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
…subscription-size-to-use-usesubpage Revert "Refactor subscription size page to use useSubPage hook" (cherry picked from commit 416bdf8) (cherry-picked to staging by lakchote)
|
🚀 Cherry-picked to staging by https://github.com/arosiclair in version: 9.3.17-5 🚀
|
|
🚀 Deployed to production by https://github.com/lakchote in version: 9.3.17-9 🚀
|
|
🚀 Cherry-picked to staging by https://github.com/arosiclair in version: 9.3.18-0 🚀
|
|
🚀 Deployed to production by https://github.com/lakchote in version: 9.3.18-8 🚀
|
|
🚀 Cherry-picked to staging by https://github.com/arosiclair in version: 9.3.23-2 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.3.23-3 🚀
|
Reverts #80620
$ #82096