Closed zachsitka closed 2 weeks ago
Hey Zach, thanks for reporting. I was able to reproduce, this is definitely broken. We'll get a fix lined up for this.
Hi, just curious; any update on this?
Hey Zach -- this should now be fixed. Take a look and let us know if you have any other issues!
cc @shoheikawano
@MitchLillie The fix confirmed! The extension now behaves as expected. Thanks!
Please list the package(s) involved in the issue, and include the version you are using
@shopify/ui-extensions-react version 2024.4.1
Describe the bug
When users navigate from one order-details page to another without leaving the order details page the selected items returned via the useApi function do not change. The selected items is always the same as when the extension was first loaded on the page.
Navigation events that trigger this issue: Using the <> buttons Searching for an order in the search bar and clicking on a result
Steps to reproduce the behavior:
Setup:
Steps:
Expected behavior
I would expect that the data.selected array would update so that you are always seeing the order that is currently being displayed. Otherwise the extension is not actually displaying the correct information based on the order that is on the page around it.