Skip to content

Commit bd11aa0

Browse files
committed
Deprecate dynamic component loader
1 parent dea1c62 commit bd11aa0

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

dash/development/component_loader.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import collections
22
import json
33
import os
4+
import warnings
5+
46

57
from ._py_components_generation import (
68
generate_class_file,
@@ -34,7 +36,13 @@ def load_components(metadata_path, namespace="default_namespace"):
3436
components -- a list of component objects with keys
3537
`type`, `valid_kwargs`, and `setup`.
3638
"""
37-
39+
warnings.warn(
40+
DeprecationWarning(
41+
"Dynamic components loading has been deprecated and will be removed"
42+
" in dash 3.0.\n"
43+
f"Update {namespace} to generate components with dash-generate-components"
44+
)
45+
)
3846
# Register the component lib for index include.
3947
ComponentRegistry.registry.add(namespace)
4048
components = []

0 commit comments

Comments
 (0)