Save/Refresh Page On Admin Action Admin UI Extension

AI-generated summary

An Admin UI extension used as an admin action on the draft order detail page can update the draft order through GraphQL, but there appears to be no supported way to refresh the underlying Shopify Admin page afterward.

Key points:

  • The available <Form> component is seen as unsuitable in an admin action modal, because the contextual save bar appears behind the modal and then disappears when the action closes.
  • The navigation API was also investigated as a possible way to reload or navigate, but it reportedly does not work from admin actions. There is suspicion that this capability may have been removed.
  • A GitHub issue was opened to report the problem, but later participants note that the issue link is no longer available.

Current status:

  • No solution is provided in the discussion.
  • The problem remains open and affects usability: if the page does not reload updated data, a user making another save may overwrite or lose extension-related changes.

Hi There,
I’ve got a basic Admin UI Extension I’ve developed. It’s an admin action. I’m working on the draft orders detail page. I’m able to use the admin action to update draft order via graphQL. The problem I’m having is that I can’t find any way via the APIs available from within the admin action to reload the data on the underlying page. The component seems like the only way to do this, but it does not seem to be compatible with the admin action modals since the contextual save bar shows below the modal overlay and disappears on the admin action apis’s close event.

I also thought the navigation api would let me reload the page, but I cannot get the navigate to work to perform an admin page reload or navigate anywhere in the admin really. After researching this for a while it seems that the navigation api was maybe removed from admin actions?

How do you reload after a save on an admin action? or force the underlying resource page to fetch the new data?

Submitted an issue on Github: https://github.com/Shopify/ui-extensions/issues/2234

Hi,
has someone found a solution to this problem. It is a real big problem because while the interface has not loaded the updated data, if the user save another change the data of the extension will be lost.

The github issue is no more available.

+1 same for me. Did you find any solution?