reactioncommerce/example-storefront

Changes made to address book does not reflect in UI

MohanNarayana opened this issue · 1 comments

Type: minor

Describe the bug
Upon adding a new address or deleting an address the changes do not reflect immediately on UI. It only takes effect after browser refresh. The changes are persisted at DB level. Deleting a pre deleted address gives an appropriate address not found GraphQL error.

To Reproduce
Steps to reproduce the behavior:

  1. On the storefront UI go to Profile - > Address Book
  2. Add or delete an address.
  3. Navigate to Orders on the same page and go back to Address Book. The list is not updated with the cahange.
  4. Navigate out of the profile page (maybe home page or cart. Explore some products). Go back to address book. The list is not updated with the cahange.
  5. Refresh the browser. The list is now updated with the cahange.

Expected behavior
The address book should refresh with the changes right after clicking save/delete.
Delete should have a delete confirmation dialogue.

Screenshots

image

Desktop (please complete the following information):

  • OS: macOS Catalina
  • Browser Chrome
  • Version 10.15.7

Looks like #654 is related to this as well.