overleaf/services/web/frontend/js/features/pdf-preview/util
Domagoj Kriskovic c931d90f34 Wait for "doc:saved" event before compiling (#16153)
* wait doc:saved before compiling

* Refactor DocumentCompiler class to handle pending operations before compilation

* add timeout for pending op

* Increase PENDING_OP_MAX_WAIT to 10000 milliseconds

* check if currentDoc exists

* check doc id on doc:saved

* Fix conditional statement

* Refactor to add and remove event listeners for doc:saved event

* check if getPendingOp exists

* typeof getPendingOp

* forgot to push updates

* add flush-changes event

* use promise for handling pending operations

* Remove console.logs

* add isAwaitingBufferedOps

* Revert "add isAwaitingBufferedOps"

This reverts commit 56b0bbc13caf6375d1cf50e8f65f599e7263c404.

* move _awaitBufferedOps in try block

* dont check for matching doc id

* add a todo comment

GitOrigin-RevId: 9225e7d1a7a69385dc1a26bf7663f89f59db6a8a
2024-01-16 09:04:05 +00:00
..
compiler.js Wait for "doc:saved" event before compiling (#16153) 2024-01-16 09:04:05 +00:00
editor-files.js Add React version of the PDF preview pane (#5135) 2021-10-01 08:03:12 +00:00
file-list.js Fix sorting for output files in PDF preview (#11267) 2023-01-18 09:04:44 +00:00
highlights.js Merge pull request #14147 from overleaf/jdt-synctex-highlight-alignment 2023-08-04 08:04:29 +00:00
metrics.js Merge pull request #14980 from overleaf/jpa-debug-console 2023-09-28 08:04:12 +00:00
output-files.js Merge pull request #15342 from overleaf/td-remove-file-tree-manager-in-react 2023-10-27 08:03:10 +00:00
pdf-caching-flags.js Merge pull request #14980 from overleaf/jpa-debug-console 2023-09-28 08:04:12 +00:00
pdf-caching-transport.js Merge pull request #14980 from overleaf/jpa-debug-console 2023-09-28 08:04:12 +00:00
pdf-caching.js Merge pull request #13525 from overleaf/jpa-teardown-compile-domain-test 2023-07-17 10:43:01 +00:00
pdf-js-versions.js Upgrade PDF.js (#15157) 2023-11-15 09:03:09 +00:00
pdf-js-wrapper.js Merge pull request #14980 from overleaf/jpa-debug-console 2023-09-28 08:04:12 +00:00