Do you have any suggestions, solutions for these topics:
Basically how to achieve programmatical refresh/reload on an admin page (e.g.: Product detail)?
Do you have any suggestions, solutions for these topics:
Basically how to achieve programmatical refresh/reload on an admin page (e.g.: Product detail)?
Hi @BotondV
Shopify Admin extensions can trigger navigation or display banners, but cannot force a full page reload of the native admin interface. What would be your usecase here?
Hi @Liam-Shopify ,
my use case is this:
The problem is that the media section does not add a new grid item for the new media, but “stacks” it on another.
Actual behavior:
An overlay on the (last) existing media item, with +2 number on it. See here:
Expected behavior:
A new grid item should be added, as if I were manually picked a new media item. See here:
Note: the expected media grid item appears after manual refresh, but manual refresh is not ideal.
What do you recommend to resolve this?
p.s: updating the product title for example via API, updates the actual title, so the problem is with the media section (adding, reordering).
Hi again @BotondV
Thanks for describing this scenario - I do understand the challenge you’re facing. Unfortunately there’s currently no way to programmatically refresh the native Admin UI from an extension. Your best option for now might be to poll for media status and show a prompt to the merchant to refresh their page.