mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Merge pull request #8961 from overleaf/ae-prevent-compile-on-load
Allow "compile on load" to be disabled (for tests) GitOrigin-RevId: f36b4a5c10c4bd68832e27d6472346f77afdb9c2
This commit is contained in:
parent
d905863002
commit
36fae7c8ea
1 changed files with 4 additions and 0 deletions
|
@ -65,6 +65,10 @@ export default class DocumentCompiler {
|
|||
async compile(options = {}) {
|
||||
options = { ...this.defaultOptions, ...options }
|
||||
|
||||
if (options.isAutoCompileOnLoad && getMeta('ol-preventCompileOnLoad')) {
|
||||
return
|
||||
}
|
||||
|
||||
// set "compiling" to true (in the React component's state), and return if it was already true
|
||||
const wasCompiling = this.compilingRef.current
|
||||
this.setCompiling(true)
|
||||
|
|
Loading…
Reference in a new issue