Skip to content

Commit a128d87

Browse files
committed
[middleware] Guide updates
1 parent 93efc5a commit a128d87

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

site/guides/04_middleware.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ Store.
1111
## The Basics
1212

1313
Here's a simple example to show a Middleware object in action. We create a
14-
middleware callback that will be called whenever a single Cell is set, and makes
15-
sure that strings written to the Store are always uppercase:
14+
middleware callback that will be called whenever a single Value is set, and
15+
makes sure that strings written to the Store are always uppercase:
1616

1717
```js
1818
import {createMiddleware, createStore} from 'tinybase';
@@ -60,11 +60,11 @@ The full list of `willDel*` callbacks you can register is as follows:
6060

6161
| Callback | Parameters | Called | Return |
6262
| ------------- | ---------------------- | ------------------------- | ------- |
63-
| willDelTables | tableIds | When delTables is called. | boolean |
63+
| willDelTables | | When delTables is called. | boolean |
6464
| willDelTable | tableId | When delTable is called. | boolean |
6565
| willDelRow | tableId, rowId | When delRow is called. | boolean |
6666
| willDelCell | tableId, rowId, cellId | When delCell is called. | boolean |
67-
| willDelValues | valueIds | When delValues is called. | boolean |
67+
| willDelValues | | When delValues is called. | boolean |
6868
| willDelValue | valueId | When delValue is called. | boolean |
6969

7070
The callbacks are registered with the Middleware object using fluent methods

0 commit comments

Comments
 (0)