Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

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

Solved

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

justbuild
Shopify Partner
6 1 2

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!

Accepted Solution (1)
justbuild
Shopify Partner
6 1 2

This is an accepted solution.

Hi Impletus, as you may already know, the issue now is fixed and I confirmed that it works as expected now 🙂

View solution in original post

Replies 6 (6)

impetus
Shopify Partner
3 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
3 0 1

Apparently, this is a shopify admin extensions bug

 

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

justbuild
Shopify Partner
6 1 2

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

justbuild
Shopify Partner
6 1 2

This is an accepted solution.

Hi Impletus, as you may already know, the issue now is fixed and I confirmed that it works as expected now 🙂

justbuild
Shopify Partner
6 1 2

I though this is fixed, but now in my testing store it skips showing and hiding for each navigation.

Initial load -> show

navigate -> hide (expected: show)

navigate -> show (expected: show)

navigate -> hide (expected: show)

 

Is anyone experiencing the same behavior?

impetus
Shopify Partner
3 0 1

Yes, we face this issue too.

 

Every other page load (using < and > keys) does not load the app block entirely.