mirror of
https://github.com/strapi/strapi.git
synced 2025-10-14 17:43:01 +00:00
Merge pull request #1110 from ujal/fix-reload
Fix strapi.reload.isWatching === undefined
This commit is contained in:
commit
f46950ee4e
@ -236,8 +236,9 @@ class Strapi extends EventEmitter {
|
|||||||
// Special state when the reloader is disabled temporarly (see GraphQL plugin example).
|
// Special state when the reloader is disabled temporarly (see GraphQL plugin example).
|
||||||
state.shouldReload = !(state.isWatching === false && value === true);
|
state.shouldReload = !(state.isWatching === false && value === true);
|
||||||
state.isWatching = value;
|
state.isWatching = value;
|
||||||
|
},
|
||||||
return value;
|
get: () => {
|
||||||
|
return state.isWatching;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user