Skip to content

trame/synchronization_context/get_cached_data_array key not found after on_client_connected callback #677

Closed Answered by jourdain
callaway-chris-yang asked this question in Q&A
Discussion options

You must be logged in to vote

What you are describing is indeed correct and reflect what is happening.

You should be able to fix that by doing the following

async def on_client_connected():
    await asyncio.sleep(1)
    if yes:
        with state:
           plotter.clear()
           plotter.add_mesh()
           plotter.reset_camera()
           ctrl.view_update()

ctrl.on_client_connected.add_task(on_client_connected)

Replies: 2 comments 12 replies

Comment options

You must be logged in to vote
11 replies
@callaway-chris-yang
Comment options

@jourdain
Comment options

@callaway-chris-yang
Comment options

@jourdain
Comment options

@callaway-chris-yang
Comment options

Answer selected by callaway-chris-yang
Comment options

You must be logged in to vote
1 reply
@callaway-chris-yang
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