@humanspeak/svelte-headless-table
Version:
A powerful, headless table library for Svelte that provides complete control over table UI while handling complex data operations like sorting, filtering, pagination, grouping, and row expansion. Build custom, accessible data tables with zero styling opin
12 lines (11 loc) • 384 B
JavaScript
/**
* Default configuration for row state LRU caches used by plugins.
* Provides automatic eviction to prevent unbounded memory growth
* when row identities change.
*/
export const DEFAULT_ROW_STATE_CACHE_CONFIG = {
/** Maximum number of row state entries before LRU eviction */
maxSize: 1000,
/** Time-to-live in milliseconds (5 minutes) */
ttl: 5 * 60 * 1000
};