-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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: breaking selector due to missing controller state #12375
Conversation
the selector is trying to access some engine state that is removed at build time through code-fences. Long term - we need to investigate and ensure that the UI is not calling the selectors.
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
Bitrise❌❌❌ Commit hash: 4540de3 Note
Tip
|
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.
LGTM
@Prithpal-Sooriya can you show manual confirmation this has fixed the issue? |
…tamask-mobile into hotfix/fix-breaking-selector
825d2a4
app/components/Views/Settings/SecuritySettings/__snapshots__/SecuritySettings.test.tsx.snap
Show resolved
Hide resolved
Bitrise✅✅✅ Commit hash: 344002f Note
|
@sethkfman I've attached a recording for a before and after the changes. I've also sneaked in some other changes to ensure notification hooks are not called when the feature is disabled. |
Quality Gate passedIssues Measures |
Description
The selector is trying to access some engine state that is removed at build time through code-fences.
This fix ensures that the selectors are using the engine state or default to the controllers default state.
Long term - we need to investigate and ensure that the UI is not calling the selectors.
Related issues
Fixes: #11909
Manual testing steps
Screenshots/Recordings
Before / After Recording
https://www.loom.com/share/badc4b4cd3b0446486497973dcf337f6?sid=33bcfe23-c495-41bf-89f5-e57b4b72e3d2
I was not able to replicate the controller state being undefined/missing, so forced it to be undefined when testing.
Pre-merge author checklist
Pre-merge reviewer checklist