Skip to content

Commit

Permalink
Revert TypeScript warning
Browse files Browse the repository at this point in the history
  • Loading branch information
sebmos authored Jul 28, 2023
1 parent f893c27 commit 04a8a25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/tutorial/todos.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ And with this we are ready to start wiring things up.
Let's start with the top-level component:

```tsx
const [useTodos] = bind(todosMap$.pipe(map(todosMap => Array.from(todosMap.values()))))
const [useTodos] = bind(todosMap$.pipe(map(todosMap => [...todosMap.values()])))

function TodoList() {
const todoList = useTodos()
Expand Down

0 comments on commit 04a8a25

Please sign in to comment.