You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the Product Configuration UI Extension (admin.product-details.configuration.render), the extension is only rendered once per refresh. When switching to a different product page, the extension is not rendered again and shows the previous product instead.
For different UI Extension targets (even the normal product block), this issue does not reproduce. It seems isolation to the bundles UI.
Steps to reproduce the behavior:
Using the minimal implementation below and a bit of graphql to generate two products with bundles.
View a product that has a bundle attached. See the product ID is as-expected.
Return to the product index and view a different product that has a different bundle attached. See the product ID matches the previous product.
Refresh the page. See that the product ID is now as-expected.
Expected behavior
I was expecting the extension to be re-rendered with the new product passed down when viewing a different product.
Screenshots
First render shows correct product ID, matching URL
Second render shows previous product ID, not matching URL
Additional context
That this is all being done in an isolated web worker is incredible. And also through a tunnel to local code when using the dev console is so helpful. So, additional context is just a 👍 this is awesome from me.
The text was updated successfully, but these errors were encountered:
I don't think this has something to do with bundles:
I just have the same issue, but with placing and Admin Block in the Order page: const TARGET = 'admin.order-details.block.render';
The component renders perfectly fine the first time, looks up the current order and my metafields on it...
However when I click the buttons in the top right,
to switch to the next order, all components seem to re-render or do something, but mine just stays the same. Its not getting re-rendered, which is what I would expect.
Means, the order is switched but my AdminBlock still shows the Information from the first order. 😢
I tested it with simple console.logs nothing is happening with my AdminBlock extension when the URL switches to the next order. It's really seems not unmounting/remounting the component.
Is that a bug or intended?
Do I need to watch the URL or something like this, to update my component?
Is there any workaround for that?
Please list the package(s) involved in the issue, and include the version you are using
Describe the bug
Using the Product Configuration UI Extension (admin.product-details.configuration.render), the extension is only rendered once per refresh. When switching to a different product page, the extension is not rendered again and shows the previous product instead.
For different UI Extension targets (even the normal product block), this issue does not reproduce. It seems isolation to the bundles UI.
Steps to reproduce the behavior:
Using the minimal implementation below and a bit of graphql to generate two products with bundles.
Expected behavior
I was expecting the extension to be re-rendered with the new product passed down when viewing a different product.
Screenshots
First render shows correct product ID, matching URL
Second render shows previous product ID, not matching URL
Additional context
That this is all being done in an isolated web worker is incredible. And also through a tunnel to local code when using the dev console is so helpful. So, additional context is just a 👍 this is awesome from me.
The text was updated successfully, but these errors were encountered: