This commit is contained in:
Schluffe
2026-05-28 19:53:31 +02:00
parent 6a960d7785
commit f8efda0ada
5 changed files with 17 additions and 14 deletions
+1 -1
View File
@@ -8,9 +8,9 @@ export function createSignal<T>(value: T): [() => T, (value: T) => void] {
const getter = () => {
current !== null && observers.add(current);
return innerValue;
};
const setter = (value: T) => {
innerValue = value;
for (const observer of observers) {