This repository was archived by the owner on Jun 4, 2024. It is now read-only.
File tree 2 files changed +4
-7
lines changed
2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -113,4 +113,4 @@ export function getReloadHash() {
113
113
'GET' ,
114
114
'reloadRequest'
115
115
)
116
- }
116
+ }
Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ class Reloader extends React.Component {
11
11
this . state = {
12
12
hash : null ,
13
13
interval,
14
- reloading : false ,
15
14
disabled : false
16
15
}
17
16
} else {
@@ -29,14 +28,14 @@ class Reloader extends React.Component {
29
28
this . setState ( { hash : reloadHash . content . reloadHash } ) ;
30
29
return ;
31
30
}
32
- if ( reloadHash . content . reloadHash !== this . state . hash && ! this . state . reloading ) {
31
+ if ( reloadHash . content . reloadHash !== this . state . hash ) {
33
32
// eslint-disable-next-line no-undef
34
33
window . clearInterval ( this . _intervalId ) ;
35
34
if ( reloadHash . content . hard ) {
36
35
// Assets file have changed, need to reload them.
37
36
// eslint-disable-next-line no-undef
38
37
window . top . location . reload ( ) ;
39
- } else if ( ! this . state . reloading ) {
38
+ } else {
40
39
// Py file has changed, just rebuild the reducers.
41
40
dispatch ( { 'type' : 'RELOAD' } ) ;
42
41
}
@@ -49,9 +48,7 @@ class Reloader extends React.Component {
49
48
const { disabled, interval } = this . state ;
50
49
if ( ! disabled && ! this . _intervalId ) {
51
50
this . _intervalId = setInterval ( ( ) => {
52
- if ( ! this . state . reloading ) {
53
- dispatch ( getReloadHash ( ) ) ;
54
- }
51
+ dispatch ( getReloadHash ( ) ) ;
55
52
} , interval ) ;
56
53
}
57
54
}
You can’t perform that action at this time.
0 commit comments