-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Description
In the current implementation of hot reloading, a JSON response containing four keys is provided by the backend whenever asset changes are detected and a reload event is in progress:
Lines 508 to 514 in 74b4c2e
| return flask.jsonify( | |
| { | |
| "reloadHash": _hash, | |
| "hard": hard, | |
| "packages": list(self.registered_paths.keys()), | |
| "files": list(changed), | |
| } |
The original intent of the "hard" key was to identify reload events in which only CSS files have been updated. In this situation, the page would refresh CSS without re-rendering the page layout. However, @alexcjohnson and I observed that CSS (soft) reloading does not appear to work properly unless "hard": true. It seems that "hard" may always be true, so that this flag has essentially no effect.
For the moment, it appears that "is_css" (a key nested within the "files" key) actually serves this purpose, and "hard" is unused. We may wish to remove references to "hard" from both Dash for Python and R .