Fix local folder title option refresh race

This commit is contained in:
lix-2026
2026-05-26 17:24:05 +08:00
parent 2c7a91e1fb
commit 58e2fdb5d8
6 changed files with 52 additions and 1 deletions
@@ -988,6 +988,8 @@ export const createDocumentSessionRuntime = (dependencies = {}) => {
return;
}
}
session.latestAggregate = nextAggregate;
syncPageAggregateScript(session, nextAggregate);
const nextBody = nextAggregate?.body || {};
const nextPermissions = nextAggregate?.head?.permissions || {};
const nextConflictKey = conflictDetectionKeyFromBody(nextBody);