fix(badges): reports background fetch was not writing to IDB
try_cache=false skips db_save_ae_obj_li__ae_obj, so the API fetch completed but liveQuery never saw the data. Removing the override lets it default to true so results are persisted to IDB as expected. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -26,11 +26,11 @@ let event_id = $derived(page.params.event_id);
|
||||
$effect(() => {
|
||||
const eid = event_id;
|
||||
if (!eid || !$ae_api?.api_key) return;
|
||||
// try_cache defaults to true — results are written to IDB so liveQuery picks them up.
|
||||
events_func.search__event_badge({
|
||||
api_cfg: $ae_api,
|
||||
event_id: eid,
|
||||
limit: 5000,
|
||||
try_cache: false
|
||||
limit: 5000
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user