Skip to main content

UiDevkitClient

Set the window.postMessage API targetOrigin. The Vendure ui-devkit uses the postMessage API to enable cross-frame and cross-origin communication between the ui extension code and the Admin UI app. The targetOrigin is a security feature intended to provide control over where messages are sent.

Signature

Parameters

value

parameterstring

Retrieves information about the current route of the host application, since it is not possible to otherwise get this information from within the child iframe.

Example

Ts
Signature

Perform a GraphQL query and returns either an Observable or a Promise of the result.

Example

Ts
Signature

Parameters

document

parameterstring

variables

parameter{ [key: string]: any }

fetchPolicy

parameterWatchQueryFetchPolicy

Perform a GraphQL mutation and returns either an Observable or a Promise of the result.

Example

Ts
Signature

Parameters

document

parameterstring

variables

parameter{ [key: string]: any }

Display a toast notification.

Example

Ts
Signature

Parameters

options

parameterNotificationMessage['data']
Was this chapter helpful?
Report Issue
Edited Feb 23, 2026ยทEdit this page