We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents eccf9cd + e9ef534 commit e15f2b0Copy full SHA for e15f2b0
README.md
@@ -38,12 +38,10 @@ const decorator = createDecorator(
38
// Calculations:
39
{
40
field: 'foo', // when the value of foo changes...
41
- updates: [
42
- {
43
- // ...set field "doubleFoo" to twice the value of foo
44
- doubleFoo: (fooValue, allValues) => fooValue * 2
45
- }
46
- ]
+ updates: {
+ // ...set field "doubleFoo" to twice the value of foo
+ doubleFoo: (fooValue, allValues) => fooValue * 2
+ }
47
},
48
49
field: /items\[\d+\]/, // when a field matching this pattern changes...
0 commit comments