Skip to content

Commit 5d8dd5c

Browse files
committed
Isolate state clearing to just the registry and add more comments
1 parent df6e811 commit 5d8dd5c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

dash/dash.py

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

177183

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

0 commit comments

Comments
 (0)