-
Notifications
You must be signed in to change notification settings - Fork 985
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
Share Screen -> Share Wallet Address -> Indicators #18523
Conversation
{:should-component-update | ||
(fn [_ [_ old-item] [_ new-item]] | ||
(not= old-item new-item)) |
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.
this is required to prevent wallet-qr-code-item
component being re-rendered in the flatlist when the value of the current-index
atom was updated.
Jenkins BuildsClick to see older builds (111)
|
(defn- render-item | ||
[_] | ||
(let [width (rf/sub [:dimensions/window-width])] | ||
(reagent/create-class | ||
{:should-component-update | ||
(fn [_ [_ old-item] [_ new-item]] | ||
(not= old-item new-item)) |
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.
Please use a functional component
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.
actually I think you just need to use memo - https://legacy.reactjs.org/docs/hooks-faq.html#how-do-i-implement-shouldcomponentupdate
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.
updated to use Memo
mkae lint fix remove unneccessary props
58% of end-end tests have passed
Failed tests (17)Click to expandClass TestActivityCenterContactRequestMultipleDevicePR:
Class TestCommunityMultipleDeviceMerged:
Class TestOneToOneChatMultipleSharedDevicesNewUi:
Class TestDeepLinksOneDevice:
Expected to fail tests (3)Click to expandClass TestCommunityOneDeviceMerged:
Class TestGroupChatMultipleDeviceMergedNewUI:
Class TestCommunityMultipleDeviceMergedTwo:
Passed tests (28)Click to expandClass TestCommunityOneDeviceMerged:
Class TestCommunityMultipleDeviceMergedTwo:
Class TestActivityCenterContactRequestMultipleDevicePR:
Class TestOneToOneChatMultipleSharedDevicesNewUiTwo:
Class TestOneToOneChatMultipleSharedDevicesNewUi:
Class TestActivityMultipleDevicePR:
Class TestGroupChatMultipleDeviceMergedNewUI:
Class TestActivityMultipleDevicePRTwo:
|
88% of end-end tests have passed
Failed tests (3)Click to expandClass TestDeepLinksOneDevice:
Class TestCommunityOneDeviceMerged:
Expected to fail tests (3)Click to expandClass TestCommunityMultipleDeviceMergedTwo:
Class TestGroupChatMultipleDeviceMergedNewUI:
Class TestCommunityOneDeviceMerged:
Passed tests (42)Click to expandClass TestGroupChatMultipleDeviceMergedNewUI:
Class TestOneToOneChatMultipleSharedDevicesNewUi:
Class TestOneToOneChatMultipleSharedDevicesNewUiTwo:
Class TestActivityMultipleDevicePR:
Class TestCommunityMultipleDeviceMergedTwo:
Class TestCommunityMultipleDeviceMerged:
Class TestActivityMultipleDevicePRTwo:
Class TestActivityCenterContactRequestMultipleDevicePR:
Class TestCommunityOneDeviceMerged:
|
Hi @Pau1fitz ! Nice to meet you! I've checked the case when user has only one wallet and indicator is present, here is how it looks like : I went to designers and they said it is not needed in case "one wallet - one indicator": It would be cool if you can handle this at this PR. |
hey @mariia-skrypnyk 👋 PR updated to hide to indicators when only one item - see below. |
Hi @Pau1fitz ! IMG_6462.MP4 |
@mariia-skrypnyk the code has now been updated and fixes this blink when switching to wallet view |
Related to #18452
Share Screen -> Share Wallet Address -> Indicators
Screen.Recording.2024-01-16.at.08.24.12.mov
iOS
Android
Testing notes:
Navigate to the share screen
click on Wallet
user can see indicators for number of wallets and current wallet being viewed