File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111## The Basics
1212
1313Here'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
1818import {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
7070The callbacks are registered with the Middleware object using fluent methods
You can’t perform that action at this time.
0 commit comments