We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ce7386c + 4278f77 commit 0221a97Copy full SHA for 0221a97
dash/_get_app.py
@@ -39,6 +39,13 @@ def wrap(*args, **kwargs):
39
40
41
def get_app():
42
+ """
43
+ Return the current Dash app instance.
44
+
45
+ Useful in multi-page apps when Python files within the `pages/` folder
46
+ need to reference the `app` object but importing it directly would cause
47
+ a circular import error.
48
49
try:
50
ctx_app = app_context.get()
51
if ctx_app is not None:
0 commit comments