Admin Blocks extensions for order detail page - how to refresh data on paging?

justbuild
Shopify Partner
3 0 1

Hi! I would like to ask for help from those who have experience with Shopify admin block extensions.

 

Currently, I am in the process of creating a Admin block to be displayed on the order details page (target set to

admin.order-details.block.render

).

 

The block functions correctly when the order details page is initially loaded or when the browser is refreshed.

 

However, when navigated to the previous or next order detail page by clicking the < or > button on the top right corner, the block does not execute new processing, and it retains the content from the previous screen.

 

If anyone knows how to ensure the BlockExtension processes execute upon each navigation to the order details pages, any comment or reaction would be helpful. 

 

Thanks in advance!

Replies 3 (3)

impetus
Shopify Partner
2 0 1

Did you manage to find an answer to this? I was wondering the same thing. 

 

The useApi returns the same data when you move through orders with > and < buttons in the order detail page. Why doesn't the data reload?

impetus
Shopify Partner
2 0 1

Apparently, this is a shopify admin extensions bug

 

https://github.com/Shopify/ui-extensions/issues/1971 

justbuild
Shopify Partner
3 0 1

Hi Impetus, thank you for your message. I missed that issue. Thank you and let us hope it gets fixed soon.