Skip to content

actionDispatcher.dispatchAfterNextUpdate - when is it send? #1273

Answered by tortmayr
rsoika asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @rsoika.
dispatchAfterNextUpdate should be the right approach for you scenario. This ensures that the server sends the action after the model update has been sent to the client.

Regarding the dispatch API nothing has changed and dispatchAfterNextUpdate should work the same as in previous versions.
We also use it in our base GModelCreateNoteOperationHandler to select the created node after the update.
I quickly retested this and the behavior still works as expected.

Maybe you could share the source code so that we can have a a quick look otherwise it's not really possible to pinpoint the problem.

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
4 replies
@rsoika
Comment options

@tortmayr
Comment options

@rsoika
Comment options

@tortmayr
Comment options

Answer selected by rsoika
Comment options

You must be logged in to vote
1 reply
@tortmayr
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
2 participants