-
-
Notifications
You must be signed in to change notification settings - Fork 144
Conversation
chriddyp
commented
Mar 27, 2018
- should fix https://github.com/plotly/dash-docs/issues/81
- also adds a resize after first plot in case graphs aren’t sized up in their container
`state.hasPlotted` isn’t used in any rendering, so we don’t need to trigger the react lifecycle through `setState`
instead of clearing the listeners before plotting. clearing the listeners was causing some problem for some reason, not sure why.
@mjkramer - If you're still around, would you mind elaborating on this comment? #171 (comment) I'm essentially patching this with that suggestion but I'm forgetting what you meant by
|
@plotly/dash or @plotly/frontend - could someone review? |
@charleyferrari - could you check if this fixes the resizing issue that you saw in your latest dashboard project? try out the prerelease with
|
Hi Chris. When |
`setProps` and `fireEvent` are the connected functions that `dash-renderer` passes into the components to propagate changes from the component to the greater dash application. these props should either be supplied all of the time or none of the time, as the component dependency tree is defined up-front in the app.
thanks @mjkramer ! agreed, |
Fixes the issues in the docs https://github.com/plotly/dash-docs/issues/81 |
The resize thing looks good to me! |
Ping @charleyferrari re #178 (comment) |