Reads the queue and says what it owes.
Never throws, and never invents: with no engine wired it answers zeros and null, which is what "there is no queue here" looks like — the caller then shows "nothing owed", which is true.
null
The four facts, read in one pass.
const s = await GeoLeaf?.Storage?.getSyncStatus?.();if (s && s.owed > 0 && !s.online) console.warn(`${s.owed} écriture(s) en attente de réseau`); Copy
const s = await GeoLeaf?.Storage?.getSyncStatus?.();if (s && s.owed > 0 && !s.online) console.warn(`${s.owed} écriture(s) en attente de réseau`);
Reads the queue and says what it owes.
Never throws, and never invents: with no engine wired it answers zeros and
null, which is what "there is no queue here" looks like — the caller then shows "nothing owed", which is true.