You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not for this PR, but at some point - like perhaps, whenever we get around to fully generating __init__.py - this all seems ripe for abstracting into the dash core, like
May still need some tweaking to handle edge cases like async: 'eager'|'lazy', but we should at least be able to auto-detect sourcemaps (which may not exist in release versions #910) and set them all dynamic: True regardless of the resource setting.
Feels like the end goal is that the metadata just has a list of async_resources - maybe by extension it also has a list of resources (sync), as well as dynamic_resources, eager_resources, and lazy_resources?
Currently, Dash for Python leverages
__init__.py
to identify whether a package has resources which should be loaded asynchronously, e.g.https://github.com/plotly/dash-core-components/blob/0e1449813c620adfd337568cee8cc55292d76c02/dash_core_components_base/__init__.py#L42-L48
In Dash for R, the
internal.R
script provides much of the same information, but currently lacks metadata related to async resources:https://github.com/plotly/dash-core-components/blob/master/R/internal.R
The package generator should be modified to insert the requisite details about async resources when appropriate.
@Marc-Andre-Rivet @alexcjohnson
The text was updated successfully, but these errors were encountered: