Skip to content

Commit b2e12ab

Browse files
author
rain
committed
docs: fix Solid reducer call example
1 parent fe319fc commit b2e12ab

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/docs/00200-core-concepts/00600-clients/00700-typescript-reference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1274,7 +1274,7 @@ const [users, isReady] = useTable(
12741274
const sendMessage = useReducer(reducers.sendMessage);
12751275

12761276
<Show when={isReady()} fallback={<div>Loading users...</div>}>
1277-
<button onClick={() => sendMessage('Hello!')}>Send</button>
1277+
<button onClick={() => sendMessage({ text: 'Hello!' })}>Send</button>
12781278
<button onClick={() => setOnlineOnly(value => !value)}>Toggle online</button>
12791279
<For each={users}>{user => <div>{user.name}</div>}</For>
12801280
</Show>

0 commit comments

Comments
 (0)