Просмотр исходного кода

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 4 лет назад
Родитель
Сommit
38af0054cf
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      services/web/frontend/js/shared/context/detach-compile-context.js

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