plotly / dash-component-boilerplate

Get started creating your own Dash components here.
265 stars 182 forks source link

render three times #158

Closed Liripo closed 9 months ago

Liripo commented 9 months ago

Use_async as a template for development and initialize rendering three times. image

image

I transferred the simple sample repository code to Google Drive.

alexcjohnson commented 9 months ago

This is typical, there should be different props each time - once with its initial state, a second time with a loading_state when the callback has been queued, and the final time with the callback result.

We could probably find a way to skip loading_state when your component isn't using it but the other two are required since you have the component hooked up to a callback and you're not using prevent_initial_call=True.

Liripo commented 9 months ago

Thank you.