Skip to content

Commit d4e2753

Browse files
committed
Update thyn version
1 parent 21906db commit d4e2753

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

frameworks/keyed/thyn/package-lock.json

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frameworks/keyed/thyn/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
},
1414
"devDependencies": {
1515
"vite": "6.3.5",
16-
"@thyn/vite-plugin": "0.0.16"
16+
"@thyn/vite-plugin": "0.0.17"
1717
},
1818
"dependencies": {
19-
"@thyn/core": "0.0.16"
19+
"@thyn/core": "0.0.17"
2020
}
2121
}

frameworks/keyed/thyn/src/state.thyn.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
let rowId = 1;
2-
export const data = $state([]);
3-
export const selected = $state();
2+
export const data = $signal([]);
3+
export const selected = $signal();
44
export const isSelected = $compare(selected);
55

66
const adjectives = [
@@ -66,10 +66,10 @@ function random(max) {
6666
export const buildData = (count) => {
6767
let data = new Array(count);
6868
for (let i = 0; i < count; i++) {
69-
const label = $state(
70-
`${adjectives[random(adjectives.length)]} ${colors[random(colors.length)]} ${nouns[random(nouns.length)]}`
71-
);
72-
data[i] = { id: rowId++, label };
69+
data[i] = {
70+
id: rowId++,
71+
label: $signal(`${adjectives[random(adjectives.length)]} ${colors[random(colors.length)]} ${nouns[random(nouns.length)]}`),
72+
};
7373
}
7474
return data;
7575
};

0 commit comments

Comments
 (0)