@app-masters/sync-cache
Advanced tools
Comparing version 0.3.7 to 0.3.8
@@ -9,3 +9,3 @@ # Changelog | ||
## [0.3.0/0.3.7] - 2018-10-23 | ||
## [0.3.0/0.3.8] - 2018-10-23 | ||
### Added | ||
@@ -21,2 +21,3 @@ - Redux-saga synchronization methods | ||
- Sync create fix | ||
- Remove cacheObject from store when online is created | ||
@@ -23,0 +24,0 @@ ## [0.2.0/0.2.10] - 2018-10-22 |
@@ -224,3 +224,5 @@ "use strict"; | ||
objectToSync = await actions.syncMethod(onlineObject); | ||
objectToSync = await this.populateObject(objectToSync); | ||
objectToSync = await this.populateObject(objectToSync); // Remove cacheObject from redux - keep only online Object | ||
this.setDeleteObject(dispatch, cacheObject); | ||
actions.reduxMethod(dispatch, objectToSync); | ||
@@ -972,12 +974,12 @@ } else { | ||
/** | ||
* Dispatch Redux thunk actions DELETE_OBJECT with the value of objects as payload | ||
* Dispatch Redux thunk actions DELETE_OBJECT with the value of object as payload | ||
* @param dispatch | ||
* @param objects | ||
* @param object | ||
*/ | ||
setDeleteObject(dispatch, objects) { | ||
setDeleteObject(dispatch, object) { | ||
dispatch({ | ||
type: this.type('DELETE_OBJECT'), | ||
payload: objects | ||
payload: object | ||
}); | ||
@@ -984,0 +986,0 @@ } |
{ | ||
"name": "@app-masters/sync-cache", | ||
"version": "0.3.7", | ||
"version": "0.3.8", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "scripts": { |
67661
1767