Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jlfsjunior opened this issue Nov 26, 2021 · 1 comment

Comments

@jlfsjunior
Copy link

jlfsjunior commented Nov 26, 2021

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
Copy link
Collaborator

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.

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

No branches or pull requests

2 participants