@applicaster/zapp-react-native-utils 13.0.0-alpha.2422512885 → 13.0.0-alpha.2459003363

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@applicaster/zapp-react-native-utils",
3
- "version": "13.0.0-alpha.2422512885",
3
+ "version": "13.0.0-alpha.2459003363",
4
4
  "description": "Applicaster Zapp React Native utilities package",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -28,7 +28,7 @@
28
28
  },
29
29
  "homepage": "https://github.com/applicaster/quickbrick#readme",
30
30
  "dependencies": {
31
- "@applicaster/applicaster-types": "13.0.0-alpha.2422512885",
31
+ "@applicaster/applicaster-types": "13.0.0-alpha.2459003363",
32
32
  "buffer": "^5.2.1",
33
33
  "camelize": "^1.0.0",
34
34
  "create-react-context": "^0.2.3",
@@ -20,7 +20,6 @@ type Props = {
20
20
  silentRefresh?: boolean;
21
21
  method?: "get" | "post";
22
22
  bodyParams?: Record<string, unknown>;
23
- skipLoading?: boolean;
24
23
  };
25
24
  };
26
25
 
@@ -94,7 +93,7 @@ export const useFeedLoader = ({
94
93
  if (
95
94
  shouldDispatchData(callableFeedUrl, currentFeed, pipesOptions.clearCache)
96
95
  ) {
97
- if (callableFeedUrl && !pipesOptions.skipLoading) {
96
+ if (callableFeedUrl) {
98
97
  dispatch(
99
98
  loadPipesData(callableFeedUrl, {
100
99
  ...pipesOptions,
@@ -102,33 +101,26 @@ export const useFeedLoader = ({
102
101
  riverId,
103
102
  })
104
103
  );
105
- } else if (!callableFeedUrl) {
106
- logger.info({
107
- message:
108
- "Feed is not defined or not inflated, skipping loading. \nMake sure you have correct feedUrl and mapping.",
109
- jsOnly: true,
110
- });
111
104
  } else {
112
105
  logger.info({
113
106
  message:
114
- "Loading skipped as per pipesOptions.skipLoading configuration.",
115
- data: { url: callableFeedUrl },
107
+ "Feed is not defined or not inflated, skipping loading. \nMake sure you have correct feedUrl and mapping.",
116
108
  jsOnly: true,
117
109
  });
118
110
  }
119
111
  } else {
120
112
  logger.info({
121
113
  message:
122
- "Feed already exists, skipping loading. \nCall reloadData() if you want to refresh data.",
114
+ "Feed already exist, skipping loading. \nCall reloadData() if you want to refresh data.",
123
115
  data: { url: callableFeedUrl },
124
116
  jsOnly: true,
125
117
  });
126
118
  }
127
119
  }, []);
128
120
 
129
- // Reload feed when feedUrl changes, unless skipLoading is true
121
+ // Reload feed when feedUrl changes
130
122
  useEffect(() => {
131
- if (!isInitialRender && callableFeedUrl && !pipesOptions.skipLoading) {
123
+ if (!isInitialRender && callableFeedUrl) {
132
124
  dispatch(loadPipesData(callableFeedUrl, { ...pipesOptions, riverId }));
133
125
  }
134
126
  }, [callableFeedUrl]);
@@ -164,6 +156,7 @@ export const useFeedLoader = ({
164
156
  currentFeed?.data,
165
157
  currentFeed?.error,
166
158
  currentFeed?.loading,
159
+
167
160
  reloadData,
168
161
  loadNext,
169
162
  ]);