Explorar el Código

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
Tim Down hace 4 años
padre
commit
38af0054cf

+ 2 - 2
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',