plotly / dash-component-boilerplate

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

Should `async_resources` be updated manually when other async components are added? #136

Open jlfsjunior opened 2 years ago

jlfsjunior commented 2 years ago

Hi,

I started trying my way around async components and I was having some issues when I added a second component to the library. To reproduce it, just copy the one created by cookiecutter, refactor the name to something else and export it in the right places...

The issue was somehow related to the browser not finding async-NewComponent*.js, so I realized that __init__.py has an async_resources list containing just the component created automatically by cookiecutter, and not NewComponent just created.

As I asked in the title, should this list be modified manually or is it expected that dash-generate-components should do the trick?

Thanks!

alexcjohnson commented 2 years ago

Good point @jlfsjunior - yes, it's required to manually add new async components to __init__.py, there is nothing that automatically updates this file right now.