Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
previously useDocument did not behave well for documents that took a long time to load: - while a load was blocking the UI, an old stale doc would be shown - loads that finished out of order could result in an inconsistent final state This change fixes those two issues: - Upon a handle changing, the old doc contents are cleared out to avoid staleness inconsistencies. - Out-of-order loads are accounted for; when a load finishes it's ignored if the handle has since changed.
- Loading branch information