dataflux 1.10.0 → 1.10.1
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 +1 -1
- package/dist/ObserverStore.js +4 -0
- package/dist/dataflux.min.js +1 -1
- package/dist/dataflux.min.js.map +1 -1
- package/package.json +7 -8
package/README.md
CHANGED
|
@@ -234,7 +234,7 @@ The method `findAll` returns always an array. The method `findOne` returns a sin
|
|
|
234
234
|
|
|
235
235
|
When the component will unmount, the `findAll` subscription will be automatically terminated without the need to unsubscribe. Be aware, `store.findAll()` injects the unsubscribe call inside `componentWillUnmount()`. If your component already implements `componentWillUnmount()`, then you will have to use `store.subscribe()` and `store.unsubscribe()` instead of `store.findAll()`, to avoid side effects when the component is unmounted.
|
|
236
236
|
|
|
237
|
-
> Note: handleChange allows for type casting. E.g., store.handleChange(book, "pages",
|
|
237
|
+
> Note: handleChange allows for type casting. E.g., store.handleChange(book, "pages", parseInt)
|
|
238
238
|
|
|
239
239
|
In case you prefer React hooks:
|
|
240
240
|
|
package/dist/ObserverStore.js
CHANGED
|
@@ -367,6 +367,10 @@ var ObserverStore = /*#__PURE__*/function (_PersistentStore) {
|
|
|
367
367
|
_createClass(ObserverStore, [{
|
|
368
368
|
key: "update",
|
|
369
369
|
value: function update(objects, skipSave) {
|
|
370
|
+
if (!skipSave) {
|
|
371
|
+
_classPrivateFieldGet(this, _propagateChange).call(this, objects);
|
|
372
|
+
}
|
|
373
|
+
|
|
370
374
|
return _get(_getPrototypeOf(ObserverStore.prototype), "update", this).call(this, objects, skipSave).then(_classPrivateFieldGet(this, _propagateChange));
|
|
371
375
|
}
|
|
372
376
|
}, {
|