In a Customer Account Extension, is there an API or built-in mechanism to refresh or re-fetch the page content dynamically?
For example:
If a customer updates their order shipping address, is there a way to automatically refresh the displayed shipping address without requiring a full page reload?
Thanks!
No is the short answer. There is no supported built-in API, hook, or mechanism to reset, refresh, or re-fetch host page data (e.g., updating the displayed shipping address on an order page after a change) without a full page reload. There used to be ui.forceDataRefresh() (accessed via const { ui } = useApi<‘customer-account.page.render’>() or similar targets).
-
It explicitly did: “Refresh data so the surrounding information on the page is updated.”
-
After a backend mutation (e.g., shipping address update via GraphQL), you could call it and optionally show a toast confirming the action.
-
It required requesting the “Access force data refresh” capability (via Partner dashboard > API Access or support).
This was commonly used in customer account extensions for exactly the use case you described. However, it is no longer supported for versions after 2025-07.
Hi @tim_129 use the actual dev forums waaaAAAAAAY higher chance of an actual staff-dev response or likelihood of traction for a future change.
thats sucks!
I was forced to just refresh the page manually, which is ux wise bad
thanks!
will check it out