perspectives: added data provider layer

This commit is contained in:
Jan Prochazka
2022-07-21 11:26:44 +02:00
parent 6e6d0bb616
commit 1abfab950e
7 changed files with 77 additions and 19 deletions

View File

@@ -1,6 +1,6 @@
<script lang="ts">
import PerspectiveView from '../perspectives/PerspectiveView.svelte';
import usePerspectiveConfig from '../utility/usePerspectiveConfig';
import usePerspectiveConfig, { usePerspectiveCache } from '../utility/usePerspectiveConfig';
export let tabid;
export let conid;
@@ -9,6 +9,16 @@
export let pureName;
const config = usePerspectiveConfig(tabid);
const cache = usePerspectiveCache();
</script>
<PerspectiveView {conid} {database} {schemaName} {pureName} config={$config} setConfig={config.update} />
<PerspectiveView
{conid}
{database}
{schemaName}
{pureName}
config={$config}
setConfig={config.update}
{cache}
setCache={cache.update}
/>