Working through bugs... Related to data stores and not using the for type and for id... They were locked.

This commit is contained in:
Scott Idem
2026-04-01 19:39:26 -04:00
parent 5e0f35d3df
commit 75d85bf904
2 changed files with 16 additions and 1 deletions

View File

@@ -147,6 +147,20 @@ $effect(() => {
});
});
// Context Change Guard: reset loading status when identity props change.
// WHY: ds_loading_status persists after the initial load cycle ('loaded', 'not found', etc.).
// When for_id/for_type/ds_code change after mount (e.g. for_id resolves from undefined
// to a real event_id), the trigger effect below won't re-fire unless we reset to 'starting'.
// untrack() prevents a circular dep — we write ds_loading_status but don't subscribe to it here.
$effect(() => {
void for_id;
void for_type;
void ds_code;
untrack(() => {
ds_loading_status = 'starting';
});
});
// Initial Trigger & Context Change Guard
$effect(() => {
const account_id = $slct.account_id;