Skip to content
Discussion options

You must be logged in to vote

It shouldn't matter when you update the messages since we do have listeners and re-create the affected UI if the messages change. So if it doesn't happen super early on, I think everything should still get translated properly.

Unfortunately, there is currently no reliable way to defer action dispatching from the extension side until the diagram has been initialized (cf #1513). What you could try to do as a workaround for now is to wait for the client to be ready and then send the action with a timeout. So something like:

client.webviewEndpoint.ready.then(() => {
   // Use timeout since we cannot make sure that the diagram is already initialized before sending an action
   // https://githu…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@martin-fleck-at
Comment options

@jmenzies12
Comment options

@martin-fleck-at
Comment options

Answer selected by jmenzies12
@jmenzies12
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants