Skip to content

Conversation

@bartoszherba
Copy link
Collaborator

@bartoszherba bartoszherba commented Aug 30, 2022

Description

Logout should work always, also after page refresh during browsing "My Account".

How Has This Been Tested?

Open Magento 2 e-commerce integration page.
2. Login using valid credentials.
3. Move the mouse to the "User Account" icon in the top menu bar and click it.
4. Refresh the page.
5. Move the mouse to "Logout" in the left column and click it.

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@bartoszherba bartoszherba force-pushed the M2-1017-my-account-logout-doesnt-work-after-page-refresh branch from 570c273 to bf79b8f Compare September 1, 2022 08:06
@bartoszherba bartoszherba force-pushed the M2-1017-my-account-logout-doesnt-work-after-page-refresh branch from bf79b8f to e941c0d Compare September 1, 2022 08:13
@bartoszherba bartoszherba marked this pull request as ready for review September 1, 2022 08:13
{
id: 'log-out',
label: 'Log out',
listeners: {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately, if the component returns an object with a function inside, that function will be removed on the SRR, probably due to the serialization of the response. Only functions returned without containers are returned as expected.

@Frodigo Frodigo added this to the 1.1.0 milestone Sep 2, 2022
@bartoszherba bartoszherba merged commit 7c01dd7 into develop Sep 2, 2022
@bartoszherba bartoszherba deleted the M2-1017-my-account-logout-doesnt-work-after-page-refresh branch September 2, 2022 10:06
@Frodigo Frodigo changed the title fix: m2-1017 logout doesn't work after reload of the MyAccount page fix: logout doesn't work after reload of the MyAccount page Sep 5, 2022
@Frodigo Frodigo mentioned this pull request Sep 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants