Skip to content
This repository has been archived by the owner on Jun 4, 2024. It is now read-only.

Async table component #632

Merged
merged 3 commits into from
Oct 28, 2019
Merged

Async table component #632

merged 3 commits into from
Oct 28, 2019

Conversation

Marc-Andre-Rivet
Copy link
Contributor

@Marc-Andre-Rivet Marc-Andre-Rivet commented Oct 24, 2019

Follow up to plotly/dash#973 to be completed and @plotly/webpack-dash-dynamic-import to be updated / published in order to be completed.

Makes the entire table component async. As the table has side-effects (like the dcc.Graph), it needs to inform the renderer by using the @plotly/dash-component-plugins decorator.

@chriddyp chriddyp temporarily deployed to dash-table-review-pr-632 October 24, 2019 23:02 Inactive
@chriddyp chriddyp temporarily deployed to dash-table-review-pr-632 October 24, 2019 23:23 Inactive
@Marc-Andre-Rivet Marc-Andre-Rivet marked this pull request as ready for review October 25, 2019 12:56
{
'relative_package_path': 'async~table.js',
'external_url': (
'https://unpkg.com/dash-table@{}/dash_table/async~table.js'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh... is external serving going to work with fingerprints?

@alexcjohnson
Copy link
Collaborator

Seems straightforward... but I thought earlier you decided against doing this, like it wasn't going to help that much. What changed your mind?

@Marc-Andre-Rivet
Copy link
Contributor Author

@alexcjohnson It doesn't help much for a small app but I came to realize that for a large modular app like the docs, doing this across all core component packages greatly reduces the qty of JS that needs to be fetched in order for the app to start working.

Copy link
Collaborator

@alexcjohnson alexcjohnson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My comment about external was addressed in plotly/dash#973 - this one looks great! 💃

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants