Make board not use computed around jsx
This commit is contained in:
parent
7f2fa9cc27
commit
b1cbbc4f00
1 changed files with 3 additions and 3 deletions
|
@ -337,7 +337,7 @@ const board = createLayer("board", () => {
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|
||||||
const links = computed(() => (
|
const links = () => (
|
||||||
<>
|
<>
|
||||||
{nodes.value
|
{nodes.value
|
||||||
.reduce(
|
.reduce(
|
||||||
|
@ -374,7 +374,7 @@ const board = createLayer("board", () => {
|
||||||
/>
|
/>
|
||||||
))}
|
))}
|
||||||
</>
|
</>
|
||||||
));
|
);
|
||||||
|
|
||||||
const nextId = setupUniqueIds(() => nodes.value);
|
const nextId = setupUniqueIds(() => nodes.value);
|
||||||
|
|
||||||
|
@ -403,7 +403,7 @@ const board = createLayer("board", () => {
|
||||||
>
|
>
|
||||||
<SVGNode>
|
<SVGNode>
|
||||||
{dNodes}
|
{dNodes}
|
||||||
{links.value}
|
{links()}
|
||||||
</SVGNode>
|
</SVGNode>
|
||||||
{nodes.value.map(renderNode)}
|
{nodes.value.map(renderNode)}
|
||||||
{render(cNode)}
|
{render(cNode)}
|
||||||
|
|
Loading…
Reference in a new issue