@codetanzania/emis-api-states
Advanced tools
Comparing version 0.10.0 to 0.10.1
@@ -0,1 +1,18 @@ | ||
#### 0.10.1 (2019-03-19) | ||
##### Chores | ||
* **build:** bundle library v0.10.1 ([e566d3f6](https://github.com/CodeTanzania/emis-api-states/commit/e566d3f62783f48d6bf92060b59507c85c8bff1a)) | ||
* **package.json:** update package version to 0.10.1 ([cef0aa3b](https://github.com/CodeTanzania/emis-api-states/commit/cef0aa3b3dc5365f787a0a6e68478ebfa64fe8eb)) | ||
##### Documentation Changes | ||
* **readme:** add search query key in store structure ([0b4d0460](https://github.com/CodeTanzania/emis-api-states/commit/0b4d0460636d100d3c7c4b47bec5c548b3ff2929)) | ||
##### Bug Fixes | ||
* **thunks:** | ||
* clear search query on successful post action ([41e89d85](https://github.com/CodeTanzania/emis-api-states/commit/41e89d857a137c99754359f4f9e9fe180093b4ab)) | ||
* clear filters and sort on successfully post action ([11cf3d98](https://github.com/CodeTanzania/emis-api-states/commit/11cf3d987dbced78fbe3d9ab6d6a0f6b78d67a33)) | ||
#### 0.10.0 (2019-03-14) | ||
@@ -2,0 +19,0 @@ |
{ | ||
"name": "@codetanzania/emis-api-states", | ||
"version": "0.10.0", | ||
"version": "0.10.1", | ||
"description": "EMIS Redux state management library", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -95,2 +95,3 @@ # EMIS API States | ||
sort: null, | ||
q: undefined | ||
}, | ||
@@ -110,2 +111,3 @@ alerts: { | ||
sort: null, | ||
q: undefined | ||
}, | ||
@@ -112,0 +114,0 @@ ... |
@@ -31,2 +31,4 @@ import { pluralize, singularize } from 'inflection'; | ||
Object.assign({}, state, { q: action.payload }), | ||
[camelize('clear', plural, 'filters')]: state => | ||
Object.assign({}, state, { filters: null }), | ||
[camelize('clear', plural, 'sort')]: state => | ||
@@ -33,0 +35,0 @@ Object.assign({}, state, { sort: null }), |
@@ -152,2 +152,11 @@ import { httpActions as client } from '@codetanzania/emis-api-client'; | ||
dispatch( | ||
actions[resourceName][camelize('clear', pluralName, 'filters')]() | ||
); | ||
dispatch( | ||
actions[resourceName][camelize('clear', pluralName, 'sort')]() | ||
); | ||
dispatch(actions[resourceName][camelize('search', pluralName)]()); | ||
dispatch(thunks[camelize('get', pluralName)]()); | ||
@@ -154,0 +163,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
213316
4720
255