@uxland-admin/ip-patient-header
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -0,1 +1,2 @@ | ||
import isAsyncStateStale from "@uxland/uxl-redux/is-async-stale"; | ||
import { FETCH_PATIENT_HEADER } from "../../state/patient-header/reducer"; | ||
@@ -26,4 +27,6 @@ import { patientHeaderSelector } from "./patient-header-view"; | ||
let currentPlan = patientHeaderSelector(store.getState()); | ||
return asyncAction(FETCH_PATIENT_HEADER, () => icsFetchClient.fetch(`/patient/${patientContext.patient}`), store); | ||
if (isAsyncStateStale(currentPlan)) { | ||
return asyncAction(FETCH_PATIENT_HEADER, () => icsFetchClient.fetch(`/patient/${patientContext.patient}`), store); | ||
} | ||
} | ||
}; |
{ | ||
"name": "@uxland-admin/ip-patient-header", | ||
"description": "ICS Process - Patient Header", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"main": "index.js", | ||
@@ -6,0 +6,0 @@ "repository": { |
13060
8
217