Skip to content

Commit 776232b

Browse files
committed
Always set debug to true when hot_reload=True.
Remove hash from configs.
1 parent 2e99ed8 commit 776232b

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

dash/dash.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def __init__(
8989
external_scripts=None,
9090
external_stylesheets=None,
9191
hot_reload=False,
92-
hot_reload_interval=1000,
92+
hot_reload_interval=3000,
9393
suppress_callback_exceptions=None,
9494
**kwargs):
9595

@@ -237,8 +237,12 @@ def add_url(name, view_func, methods=('GET',)):
237237
target=lambda: _watch.watch([self._assets_folder],
238238
self._on_assets_change,
239239
sleep_time=0.5))
240+
self._watch_thread.daemon = True
240241
self._watch_thread.start()
241242

243+
if not self.server.debug:
244+
self.server.debug = True
245+
242246
@property
243247
def layout(self):
244248
return self._layout
@@ -304,7 +308,6 @@ def _config(self):
304308
}
305309
if self._reload_hash:
306310
config['hot_reload'] = {
307-
'hash': self._reload_hash,
308311
'interval': self._reload_interval
309312
}
310313
return config

dev-requirements-py37.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
dash_core_components>=0.27.2
2-
dash_html_components>=0.13.0rc2
2+
dash_html_components==0.12.0
33
dash-flow-example==0.0.3
44
dash-dangerously-set-inner-html
55
dash_renderer

0 commit comments

Comments
 (0)