feat: rebuild reactivity state from store after replay

Add `rebuildReactivityFromStore` to synchronize local reactivity
state with the hydrated variable store. This ensures tag activations
are correctly tracked following a reducer replay.

Also remove the unused `invalidateCompletions` function.
This commit is contained in:
2026-07-13 10:34:44 +08:00
parent 6f01a29723
commit 3137970b97
4 changed files with 26 additions and 7 deletions
-6
View File
@@ -209,12 +209,6 @@ export function ensureCompletions(): Promise<void> {
return _initPromise;
}
/** Force a re-fetch on the next page load. For runtime, call before invalidate triggers. */
let _invalidated = false;
export function invalidateCompletions(): void {
_invalidated = true;
}
/**
* Reactive hooks for the journal input.
* Returns the current completions state + a convenience `data` extractor.