Merge pull request #8286 from overleaf/em-halt-on-error-backend

Stop on first error backend implementation

GitOrigin-RevId: 497b1ed2c13f544760d8ad8d029359db75275389
This commit is contained in:
Eric Mc Sween
2022-06-07 08:02:21 +00:00
committed by Copybot
parent bda307fbb5
commit baaf4d4240
10 changed files with 228 additions and 177 deletions
@@ -224,6 +224,11 @@ export function LocalCompileProvider({ children }) {
compiler.draft = draft
}, [compiler, draft])
// keep stop on first error setting in sync with the compiler
useEffect(() => {
compiler.stopOnFirstError = stopOnFirstError
}, [compiler, stopOnFirstError])
// pass the "uncompiled" value up into the scope for use outside this context provider
useEffect(() => {
setUncompiled(changedAt > 0)