Working through bugs... Related to data stores and not using the for type and for id... They were locked.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user