Skip to content

Commit cc6ea42

Browse files
authored
Fix dispatchMessageToView to use count.get()
1 parent 637ed8d commit cc6ea42

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/shadow-objects/docs/02-guides/02-creating-shadow-objects.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ export function CounterLogic({ createSignal, createEffect, dispatchMessageToView
116116

117117
// Notify View of changes
118118
createEffect(() => {
119-
dispatchMessageToView('count-changed', { value: count() });
119+
dispatchMessageToView('count-changed', { value: count.get() });
120120
});
121121
}
122122
```

0 commit comments

Comments
 (0)