Skip to content

Commit e3ae4cb

Browse files
committed
Fix computed to use the hook form
1 parent eb7e57a commit e3ae4cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extension/src/components/Graph.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export function GraphVisualization() {
1515
const svgRef = useRef<SVGSVGElement>(null);
1616

1717
// Build graph data from updates signal using a computed
18-
const graphData = computed<GraphData>(() => {
18+
const graphData = useComputed<GraphData>(() => {
1919
const rawUpdates = updates.value;
2020
if (!rawUpdates || rawUpdates.length === 0)
2121
return { nodes: [], links: [], components: [] };

0 commit comments

Comments
 (0)