Make board not use computed around jsx

This commit is contained in:
thepaperpilot 2024-12-12 07:59:10 -06:00
parent 7f2fa9cc27
commit b1cbbc4f00

View file

@ -337,7 +337,7 @@ const board = createLayer("board", () => {
</>
);
const links = computed(() => (
const links = () => (
<>
{nodes.value
.reduce(
@ -374,7 +374,7 @@ const board = createLayer("board", () => {
/>
))}
</>
));
);
const nextId = setupUniqueIds(() => nodes.value);
@ -403,7 +403,7 @@ const board = createLayer("board", () => {
>
<SVGNode>
{dNodes}
{links.value}
{links()}
</SVGNode>
{nodes.value.map(renderNode)}
{render(cNode)}