@ktjs/mui 0.33.5 → 0.34.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
## Recent Updates and Breaking Changes
|
|
18
18
|
|
|
19
19
|
1. `ref.value` remains the standard read API, and it can also replace the whole outer value with `ref.value = nextValue`.
|
|
20
|
-
2. `ref.draft` is the deep-mutation entry for
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
2. `ref.draft` is the deep-mutation entry for literally any objects. Just use `someRef.draft.a = someValue`, and kt.js will add it to microqueue and redraw it on the next tick. Works for `Map`, `Set`, `Array`, `Date` and your custom objects.
|
|
21
|
+
1. `ref.draft` itself is **not assignable**.
|
|
22
|
+
3. `addOnChange((newValue, oldValue) => ...)` keeps `oldValue` as the previous reference, not a deep snapshot.
|
|
23
23
|
|
|
24
24
|
## Community
|
|
25
25
|
|