From 38af0054cf5a12a4238b4529ddce110c057553ea Mon Sep 17 00:00:00 2001 From: Tim Down Date: Wed, 13 Jul 2022 10:06:41 +0100 Subject: [PATCH] Merge pull request #8838 from overleaf/jpa-fix-first-render-done-direction [web] firstRenderDone is called by the pdf viewer, switch detach roles GitOrigin-RevId: ec0c3e2637cdfbc512aa14313b674d635e9a1a69 --- .../web/frontend/js/shared/context/detach-compile-context.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/web/frontend/js/shared/context/detach-compile-context.js b/services/web/frontend/js/shared/context/detach-compile-context.js index d2d043d130..e3cffc19ba 100644 --- a/services/web/frontend/js/shared/context/detach-compile-context.js +++ b/services/web/frontend/js/shared/context/detach-compile-context.js @@ -269,8 +269,8 @@ export function DetachCompileProvider({ children }) { const firstRenderDone = useDetachAction( 'firstRenderDone', _firstRenderDone, - 'detacher', - 'detached' + 'detached', + 'detacher' ) const setHasLintingError = useDetachAction( 'setHasLintingError',