Skip to content

Commit 567b830

Browse files
committed
combine onMounted
1 parent 8663831 commit 567b830

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

docs/features/interactions.md

+1-4
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,13 @@ const olympians = shallowRef([
99
{weight: 170, height: 2.21, sex: "male"}
1010
]);
1111

12-
onMounted(() => {
13-
d3.csv("../data/athletes.csv", d3.autoType).then((data) => (olympians.value = data));
14-
});
15-
1612
const penguins = shallowRef([
1713
{culmen_length_mm: 32.1, culmen_depth_mm: 13.1},
1814
{culmen_length_mm: 59.6, culmen_depth_mm: 21.5}
1915
]);
2016

2117
onMounted(() => {
18+
d3.csv("../data/athletes.csv", d3.autoType).then((data) => (olympians.value = data));
2219
d3.csv("../data/penguins.csv", d3.autoType).then((data) => (penguins.value = data));
2320
});
2421

0 commit comments

Comments
 (0)