Optimize IDAA Bulletin Board performance and finalize hydration stability
- Disabled redundant comment loading in BB Post list to eliminate '1+N' API request overhead. - Fixed missing 'untrack' import in BB Post page. - Refactored IDAA Archive and BB pages to use 'page.params' for robust Svelte 5 reactivity. - Finalized root layout hydration guards to prevent infinite store synchronization loops.
This commit is contained in:
@@ -10,6 +10,7 @@
|
|||||||
// *** Import Svelte specific
|
// *** Import Svelte specific
|
||||||
import { page } from '$app/state';
|
import { page } from '$app/state';
|
||||||
import { browser } from '$app/environment';
|
import { browser } from '$app/environment';
|
||||||
|
import { untrack } from 'svelte';
|
||||||
// import { goto, invalidate, pushState, replaceState } from '$app/navigation';
|
// import { goto, invalidate, pushState, replaceState } from '$app/navigation';
|
||||||
|
|
||||||
// *** Import other supporting libraries
|
// *** Import other supporting libraries
|
||||||
@@ -158,7 +159,7 @@
|
|||||||
api_cfg: $ae_api,
|
api_cfg: $ae_api,
|
||||||
account_id: $slct.account_id,
|
account_id: $slct.account_id,
|
||||||
qry_archive_on: '2024-01-01', // (new Date()).toISOString(),
|
qry_archive_on: '2024-01-01', // (new Date()).toISOString(),
|
||||||
inc_comment_li: true,
|
inc_comment_li: false,
|
||||||
enabled: $idaa_loc.bb.qry__enabled,
|
enabled: $idaa_loc.bb.qry__enabled,
|
||||||
hidden: $idaa_loc.bb.qry__hidden,
|
hidden: $idaa_loc.bb.qry__hidden,
|
||||||
limit: $idaa_loc.bb.qry__limit,
|
limit: $idaa_loc.bb.qry__limit,
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ export const load = (async ({ params, parent }) => {
|
|||||||
api_cfg: ae_acct.api,
|
api_cfg: ae_acct.api,
|
||||||
for_obj_type: 'account',
|
for_obj_type: 'account',
|
||||||
for_obj_id: account_id,
|
for_obj_id: account_id,
|
||||||
inc_comment_li: true,
|
inc_comment_li: false,
|
||||||
enabled: 'enabled',
|
enabled: 'enabled',
|
||||||
hidden: 'not_hidden',
|
hidden: 'not_hidden',
|
||||||
limit: 19,
|
limit: 19,
|
||||||
|
|||||||
Reference in New Issue
Block a user