Skip to content

Commit 2838bbc

Browse files
authored
Update README.md
1 parent 49b0506 commit 2838bbc

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

README.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,15 @@ Based on the installation path above.
9595
9696
```js
9797
import { db } from './store'
98-
99-
db.tasks.add({ title: 'New Task' }).then(
100-
db.tasks.where('$deleted').notEqual(1).reverse().sortBy('$created').then(console.log)
101-
)
98+
99+
db.tasks
100+
.add({ title: 'New Task' })
101+
.then(
102+
db.tasks
103+
.where('$deleted').notEqual(1)
104+
.reverse().sortBy('$created')
105+
.then(console.log)
106+
)
102107
```
103108
104109
Run `npm run dev`, open http://localhost:5173 and see how the task list is logged to the console.

0 commit comments

Comments
 (0)