fix(launcher): resolve hydration errors and missing file counts

- Initialized event_session_id to null in store template to prevent Svelte 5 binding errors.\n- Fixed invalid bind expressions in Launcher layout.\n- Corrected view: alt propagation in session list background refresh to ensure file counts are retrieved.\n- Hardened duplicate launch protection with verify_hash enabled by default.\n- Updated SVELTE_DEXIE_GUIDE.md with binding pitfall documentation.
This commit is contained in:
Scott Idem
2026-02-10 16:00:13 -05:00
parent 900105913b
commit 8a05e48514
6 changed files with 46 additions and 8 deletions

View File

@@ -59,6 +59,7 @@ export async function load({ params, parent, url }) {
inc_presenter_li: true,
enabled: 'enabled',
hidden: 'all',
view: 'alt', // Standardized View for file counts and extended metadata
limit: 150,
log_lvl: 0
});

View File

@@ -92,6 +92,7 @@
async function handle_open_file() {
if (log_lvl) console.log('*** handle_open_file() ***');
if (open_file_clicked) return; // Hard Guard: Already processing
$events_slct.event_file_id = event_file_id;
$events_slct.event_file_obj = event_file_obj;
@@ -107,7 +108,8 @@
const exists = await native.check_hash_file_cache({
cache_root,
hash: event_file_obj.hash_sha256
hash: event_file_obj.hash_sha256,
verify_hash: true // Hardened: Trust No One!
});
if (!exists) {

View File

@@ -1,13 +1,13 @@
<script lang="ts">
interface Props {
slct__event_session_id?: string;
slct__event_session_id?: string | null;
lq__event_session_obj: any;
type_code?: string;
log_lvl?: number;
}
let {
slct__event_session_id = $bindable(''),
slct__event_session_id = $bindable(null),
lq__event_session_obj,
type_code = $bindable(''),
log_lvl = $bindable(1)