Skip to content

Commit eb64cb8

Browse files
committed
Isolate state clearing to just the registry and add more comments
1 parent 9a17a5c commit eb64cb8

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Diff for: dash/dash.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,13 @@ def _get_skip(text, divider=2):
173173
def init_dash_globals():
174174
"""Ensure that all Dash global state is re-initialised."""
175175
_pages.PAGE_REGISTRY.clear()
176-
_pages.CONFIG.clear()
176+
177+
# this line of thinking could be extended to potentially clear the following:
178+
# _pages.CONFIG
179+
# _get_paths.CONFIG
180+
# _callback.GLOBAL_CALLBACK_MAP
181+
# _callback.GLOBAL_CALLBACK_LIST
182+
# _callback.GLOBAL_INLINE_SCRIPTS
177183

178184

179185
# pylint: disable=too-many-instance-attributes

0 commit comments

Comments
 (0)