@eohjsc/react-native-smart-city 0.3.18 → 0.3.19

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@eohjsc/react-native-smart-city",
3
3
  "title": "React Native Smart Home",
4
- "version": "0.3.18",
4
+ "version": "0.3.19",
5
5
  "description": "TODO",
6
6
  "main": "index.js",
7
7
  "files": [
@@ -64,7 +64,7 @@ const AddCommonSelectSubUnit = ({ route }) => {
64
64
  const fetchDetails = useCallback(async () => {
65
65
  const { success, data } = await axiosGet(
66
66
  API.UNIT.UNIT_DETAIL(unit_id),
67
- { headers: { 'Cache-Control': 'no-cache' } },
67
+ {},
68
68
  true
69
69
  );
70
70
  if (success) {
@@ -13,7 +13,7 @@ const useConnectDevices = (new_sensor, station_id, unit_id) => {
13
13
  const fetchDetails = useCallback(async () => {
14
14
  const { success: fetchSuccess, data: unit } = await axiosGet(
15
15
  API.UNIT.UNIT_DETAIL(unit_id),
16
- { headers: { 'Cache-Control': 'no-cache' } },
16
+ {},
17
17
  true
18
18
  );
19
19
  const station = unit.stations.find((item) => item.id === station_id);
@@ -27,7 +27,7 @@ const AddNewDevice = memo(({ route }) => {
27
27
  const fetchDetails = useCallback(async () => {
28
28
  const { success, data } = await axiosGet(
29
29
  API.UNIT.UNIT_DETAIL(unit_id),
30
- { headers: { 'Cache-Control': 'no-cache' } },
30
+ {},
31
31
  true
32
32
  );
33
33
  if (success) {
@@ -9,7 +9,7 @@ const useConnectGateway = (unit_id) => {
9
9
  const fetchDetails = useCallback(async () => {
10
10
  const { success: fetchSuccess, data: unit } = await axiosGet(
11
11
  API.UNIT.UNIT_DETAIL(unit_id),
12
- { headers: { 'Cache-Control': 'no-cache' } },
12
+ {},
13
13
  true
14
14
  );
15
15
  return { fetchSuccess, unit };
@@ -11,7 +11,7 @@ export default (unit) => {
11
11
  setIsLoading(true);
12
12
  const { success, data } = await axiosGet(
13
13
  API.UNIT.UNIT_DETAIL(unit?.id),
14
- { headers: { 'Cache-Control': 'no-cache' } },
14
+ {},
15
15
  true
16
16
  );
17
17
  if (success) {
@@ -24,7 +24,7 @@ const AddLGDevice = memo(({ route }) => {
24
24
  const fetchDetails = useCallback(async () => {
25
25
  const { success, data } = await axiosGet(
26
26
  API.UNIT.UNIT_DETAIL(unit_id),
27
- { headers: { 'Cache-Control': 'no-cache' } },
27
+ {},
28
28
  true
29
29
  );
30
30
  if (success) {
@@ -93,7 +93,7 @@ const UnitSummary = memo(({ route }) => {
93
93
  const fetchUnitDetail = useCallback(async () => {
94
94
  const { success, data } = await axiosGet(
95
95
  API.UNIT.UNIT_DETAIL(unit?.id),
96
- { headers: { 'Cache-Control': 'no-cache' } },
96
+ {},
97
97
  true
98
98
  );
99
99
  if (success) {