incremental loading

This commit is contained in:
Jan Prochazka
2022-07-21 17:05:07 +02:00
parent d71294621b
commit 2080a23b69
6 changed files with 111 additions and 23 deletions

View File

@@ -4,6 +4,7 @@
import PerspectiveView from '../perspectives/PerspectiveView.svelte';
import usePerspectiveConfig from '../utility/usePerspectiveConfig';
import stableStringify from 'json-stable-stringify';
import { writable } from 'svelte/store';
export let tabid;
export let conid;
@@ -13,6 +14,16 @@
const config = usePerspectiveConfig(tabid);
const cache = new PerspectiveCache(stableStringify);
const loadedCounts = writable({});
</script>
<PerspectiveView {conid} {database} {schemaName} {pureName} config={$config} setConfig={config.update} {cache} />
<PerspectiveView
{conid}
{database}
{schemaName}
{pureName}
config={$config}
setConfig={config.update}
{cache}
{loadedCounts}
/>