A counter that increments on every document change — including the automatic
reopen the viewer performs after registering missing-font fallbacks.
Use it as an effect dependency or a cache key when something has to be
rebuilt per document. Comparing viewer.document identity is not enough on
its own, because the reopen produces a genuinely different document that
shows the same file.
Returns number
The current document generation state and actions.
A counter that increments on every document change — including the automatic reopen the viewer performs after registering missing-font fallbacks.
Use it as an effect dependency or a cache key when something has to be rebuilt per document. Comparing
viewer.documentidentity is not enough on its own, because the reopen produces a genuinely different document that shows the same file.