-
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
fix first tap doesn't work when selecting a photo in the gallery #18885
Conversation
Jenkins BuildsClick to see older builds (8)
|
@@ -87,7 +87,7 @@ | |||
[content | |||
{:insets insets | |||
:close close | |||
:scroll-enabled? @scroll-enabled? | |||
:scroll-enabled? scroll-enabled? |
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.
Bug cause: Early deref rerendered parent and reinitialized states in child components
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.
Oh so this was the side effect that i was worried about it, my bad. thank you @Parveshdhull
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.
Hmm but passing a ratom is not ideal, no? Then the component unnecessarily needs to be aware that the prop is a ratom
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.
We can use some naming convention to clarify that the passed prop is ratom.
(if (>= (count @selected) constants/max-album-photos) | ||
(show-photo-limit-toast) | ||
(swap! selected conj item)))) | ||
:allow-multiple-presses? true |
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.
Additional Improvement (more details)
(rf/dispatch [:photo-selector/get-photos-for-selected-album]) | ||
(rf/dispatch [:photo-selector/camera-roll-get-albums]) |
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.
Moved these calls to event
74c5fca
to
de63418
Compare
98% of end-end tests have passed
Expected to fail tests (1)Click to expandClass TestCommunityOneDeviceMerged:
Passed tests (47)Click to expandClass TestCommunityOneDeviceMerged:
Class TestDeepLinksOneDevice:
Class TestOneToOneChatMultipleSharedDevicesNewUiTwo:
Class TestActivityCenterContactRequestMultipleDevicePR:
Class TestCommunityMultipleDeviceMergedTwo:
Class TestGroupChatMultipleDeviceMergedNewUI:
Class TestActivityMultipleDevicePRTwo:
Class TestActivityMultipleDevicePR:
Class TestCommunityMultipleDeviceMerged:
Class TestOneToOneChatMultipleSharedDevicesNewUi:
|
hi @Parveshdhull. thank you for PR. No issues from my side. PR is ready to be merged |
de63418
to
f4d80ba
Compare
f4d80ba
to
150fb18
Compare
fixes: #18872
status: ready