File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
dash/dash-renderer/src/components/core Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -154,15 +154,16 @@ class Reloader extends React.Component {
154
154
// Backend code changed - can do a soft reload in place
155
155
dispatch ( { type : 'RELOAD' } ) ;
156
156
}
157
- } else if ( reloadRequest . status === 500 ) {
157
+ } else if (
158
+ this . state . intervalId !== null &&
159
+ reloadRequest . status === 500
160
+ ) {
158
161
if ( this . _retry > this . state . max_retry ) {
159
162
this . clearInterval ( ) ;
160
163
// Integrate with dev tools ui?!
161
164
window . alert (
162
- `
163
- Reloader failed after ${ this . _retry } times.
164
- Please check your application for errors.
165
- `
165
+ `Hot reloading is disabled after failing ${ this . _retry } times. ` +
166
+ 'Please check your application for errors, then refresh the page.'
166
167
) ;
167
168
}
168
169
this . _retry ++ ;
You can’t perform that action at this time.
0 commit comments