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 {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)}