Skip to content

Commit 6b30d08

Browse files
committed
Deprecate runtime component loader
1 parent ef6b054 commit 6b30d08

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

dash/development/component_loader.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import collections
22
import json
33
import os
4+
import warnings
45

56
from ._py_components_generation import (
67
generate_class_file,
@@ -35,6 +36,14 @@ def load_components(metadata_path, namespace="default_namespace"):
3536
`type`, `valid_kwargs`, and `setup`.
3637
"""
3738

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+
)
46+
3847
# Register the component lib for index include.
3948
ComponentRegistry.registry.add(namespace)
4049
components = []

0 commit comments

Comments
 (0)