Restore proper client functionality with vite
This commit is contained in:
parent
41fb64aa04
commit
0b14fe89f3
|
@ -6,7 +6,6 @@
|
||||||
import { enrichProps, propsAreSame } from "../utils/componentProps"
|
import { enrichProps, propsAreSame } from "../utils/componentProps"
|
||||||
import { builderStore } from "../store"
|
import { builderStore } from "../store"
|
||||||
import { hashString } from "../utils/hash"
|
import { hashString } from "../utils/hash"
|
||||||
import { processStringSync } from "@budibase/string-templates"
|
|
||||||
|
|
||||||
export let definition = {}
|
export let definition = {}
|
||||||
|
|
||||||
|
@ -97,14 +96,12 @@
|
||||||
|
|
||||||
{#if constructor && componentProps}
|
{#if constructor && componentProps}
|
||||||
{#key propsHash}
|
{#key propsHash}
|
||||||
<div>I am a {definition._component}</div>
|
<svelte:component this={constructor} {...componentProps}>
|
||||||
<div>{processStringSync('foo: {{ bar }}', { bar: 'bar' })}</div>
|
{#if children.length}
|
||||||
<!-- <svelte:component this={constructor} {...componentProps}>-->
|
{#each children as child (child._id)}
|
||||||
<!-- {#if children.length}-->
|
<svelte:self definition={child} />
|
||||||
<!-- {#each children as child (child._id)}-->
|
{/each}
|
||||||
<!-- <svelte:self definition={child} />-->
|
{/if}
|
||||||
<!-- {/each}-->
|
</svelte:component>
|
||||||
<!-- {/if}-->
|
|
||||||
<!-- </svelte:component>-->
|
|
||||||
{/key}
|
{/key}
|
||||||
{/if}
|
{/if}
|
||||||
|
|
Loading…
Reference in New Issue