Bakes the "pending" badge on an entity queued in THIS session, if its layer holds it.
🛑 THE RESTORE WAS THE ONLY ONE TO SET IT, at boot. A capture made since was owed to the
server and drawn like any other entity, until the page was reloaded — the badge told the
truth about yesterday's work and nothing about today's.
Same property as the restore's, on purpose: clearRestoredStatus lifts either one when
the entity is pushed, and a re-read of the layer carries either one over.
Never throws: a decoration must not fail the write that asked for it.
Whether the layer HOLDS the entity — marked now, or carrying the badge already.
false means it is not there yet: the caller asks again when the layer is written.
Example
constid = awaitlayerIdentityOf("sites", "loc:3f2…"); if (!markPendingStatus("sites", id)) waiting.add("loc:3f2…");
Bakes the "pending" badge on an entity queued in THIS session, if its layer holds it.
🛑 THE RESTORE WAS THE ONLY ONE TO SET IT, at boot. A capture made since was owed to the server and drawn like any other entity, until the page was reloaded — the badge told the truth about yesterday's work and nothing about today's.
Same property as the restore's, on purpose: clearRestoredStatus lifts either one when the entity is pushed, and a re-read of the layer carries either one over.
Never throws: a decoration must not fail the write that asked for it.