Skip to content

Reactivity of VueJS variables and components #59

Answered by jourdain
DavidBerger98 asked this question in Q&A
Discussion options

You must be logged in to vote

The trickiness of Python async... ;-)

It will be too long to explain all of it on that thread but we can definitely meet and discuss it.

In general the big picture is the following:

  • The client call an async method that hold the web server until it fully complete
  • trame will gather changes and process them once a call is complete
  • flush force the server to push pieces of state change to the client before the completion of the method

A solution to that is to fork the execution flow into an async task and make sure you flush from time to time so the web-server/trame can process those changes by calling @change and state sync with client while the task is going on a yielding time to the serve…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@DavidBerger98
Comment options

Answer selected by DavidBerger98
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