-
Notifications
You must be signed in to change notification settings - Fork 984
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
The last collectible is shown for a moment while opening a new collectible #18750 #18793
The last collectible is shown for a moment while opening a new collectible #18750 #18793
Conversation
Jenkins BuildsClick to see older builds (48)
|
Hey @mmilad75 I can see in this PR, we show a blank screen for a while. We can reduce the exposure to that screen (and actually probably solve it) by triggering the navigation event at the right moment. Currently, when we press a collectible, we:
The blank screen can be reduced if we change the order of the events to:
Since this PR is too related I think it's a place to address it. |
@ulisesmac Done. Please have another look |
(if collectible | ||
{:fx [[:dispatch [:wallet/store-last-collectible-details collectible]]]} | ||
{:fx [[:dispatch [:wallet/store-last-collectible-details collectible]] | ||
[:dispatch [:navigate-to :wallet-collectible]]]} | ||
(log/error "failed to get collectible details" |
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.
Hey @mmilad75
thanks for applying the suggestion, but I think we could delay the navigation even more, inside the event that is storing:
wdyt?
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.
Sure 👍 Let me apply it
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.
Done @ulisesmac
50% of end-end tests have passed
Failed tests (23)Click to expandClass TestOneToOneChatMultipleSharedDevicesNewUi:
Class TestOneToOneChatMultipleSharedDevicesNewUiTwo:
Class TestCommunityMultipleDeviceMerged:
Class TestCommunityMultipleDeviceMergedTwo:
Class TestGroupChatMultipleDeviceMergedNewUI:
Expected to fail tests (1)Click to expandClass TestCommunityOneDeviceMerged:
Passed tests (24)Click to expandClass TestActivityMultipleDevicePR:
Class TestActivityMultipleDevicePRTwo:
Class TestOneToOneChatMultipleSharedDevicesNewUi:
Class TestOneToOneChatMultipleSharedDevicesNewUiTwo:
Class TestDeepLinksOneDevice:
Class TestActivityCenterContactRequestMultipleDevicePR:
Class TestCommunityMultipleDeviceMerged:
Class TestCommunityMultipleDeviceMergedTwo:
Class TestCommunityOneDeviceMerged:
|
hi @mmilad75 thank you for PR. Take a look please at found issue. For me, it's reproducible only on IOS Unfortunately, there are no exact steps to reproduce it. It happens randomly to me. I hope the logs might help understand what's going on. ISSUE 1: Collectible is opened twice on iOSSteps:
Actual result:The collectible is opened twice. twice.mp4Expected result:The collectible is opened once. Device:
Logs: |
It seems we are navigating twice 👀 make sure we only have one call. |
(rn/use-effect | ||
(fn [] | ||
#(rf/dispatch [:wallet/clear-last-collectible-details])) | ||
[]) |
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.
I think this empty vector can be omitted
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.
I want to run the code only in componentWillUnmount
@VolodLytvynenko Hey man. Please have another look. The issue is fixed |
ca72ef9
to
eb36e09
Compare
0% of end-end tests have passed
Failed tests (47)Click to expandClass TestActivityMultipleDevicePRTwo:
Class TestCommunityMultipleDeviceMerged:
Class TestCommunityMultipleDeviceMergedTwo:
Class TestActivityCenterContactRequestMultipleDevicePR:
Class TestOneToOneChatMultipleSharedDevicesNewUiTwo:
Class TestDeepLinksOneDevice:
Class TestGroupChatMultipleDeviceMergedNewUI:
Class TestCommunityOneDeviceMerged:
Class TestOneToOneChatMultipleSharedDevicesNewUi:
Class TestActivityMultipleDevicePR:
Expected to fail tests (1)Click to expandClass TestCommunityOneDeviceMerged:
|
Hi @mmilad75. Thank you for PR. No issues from my side. PR is ready to be merged |
fixes #18750
This PR clears the data saved on
:last-collectible-details
when the collectible screen is closed.Screen.Recording.2024-02-12.at.19.55.17.mov