@evlop/commons 1.0.297 → 1.0.298

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.
@@ -116,7 +116,7 @@ const useDataSource = (source, options) => {
116
116
  return new classes_1.Collection(items, {
117
117
  page: lodash_1.get(currentValue, 'page', 0),
118
118
  pageSize: lodash_1.get(currentValue, 'pageSize', 20),
119
- isLoading: !currentValue || lodash_1.get(currentValue, 'isLoading', false),
119
+ isLoading: typeof currentValue === 'undefined' || lodash_1.get(currentValue, 'isLoading', false),
120
120
  isRefreshing: lodash_1.get(currentValue, 'isRefreshing', false),
121
121
  hasMore: lodash_1.get(currentValue, 'hasMore', false),
122
122
  queryString: lodash_1.get(currentValue, 'queryString', ''),
@@ -130,7 +130,7 @@ const useDataSource = (source, options) => {
130
130
  previous,
131
131
  });
132
132
  }
133
- return currentValue || { isLoading: true };
133
+ return typeof currentValue === 'undefined' ? { isLoading: true } : currentValue;
134
134
  }, [dataSourceName, currentValue, dataSource]);
135
135
  const staticData = react_1.useMemo(() => {
136
136
  if (dataSourceName !== 'static')
@@ -1 +1 @@
1
- {"version":3,"file":"useDataSource.js","sourceRoot":"","sources":["../../../../src/hooks/useDataSource.tsx"],"names":[],"mappings":";;;;;;AAAA,mCAAqI;AACrI,iCAAwD;AACxD,6CAAuD;AACvD,wCAAwC;AACxC,0CAAmK;AACnK,yCAAsC;AACtC,gEAAwC;AACxC,sEAA8C;AAgB9C,MAAM,wBAAwB,GAAgC,EAAC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAC,CAAA;AAErF,MAAM,aAAa,GAAG,CAAE,MAAkC,EAAG,OAA2B,EAAQ,EAAE;IACrG,MAAM,QAAQ,GAAG,yBAAW,EAAE,CAAC;IAC/B,MAAM,QAAQ,GAAG,qBAAW,EAAE,CAAC;IAC/B,MAAM,KAAK,GAAG,mBAAQ,EAAE,CAAC;IACzB,MAAM,SAAS,GAAG,wBAAc,EAAE,CAAC;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AG,CAAC,YAAY,EAAE,cAAc,EAAE,CAAC,CAAC;gBAClD,IAAI,EAAE,YAAG,CAAC,YAAY,EAAE,MAAM,EAAE,EAAE,CAAC;gBACnC,OAAO,EAAE,QAAQ;gBACjB,MAAM;gBACN,QAAQ;gBACR,IAAI;gBACJ,QAAQ;aACX,CAAC,CAAC;SACN;QACD,OAAO,OAAO,YAAY,KAAK,WAAW,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,YAAY,CAAC;IACpF,CAAC,EAAE,CAAC,cAAc,EAAE,YAAY,EAAE,UAAU,CAAC,CAAC,CAAC;IAE/C,MAAM,UAAU,GAAG,eAAO,CAAC,GAAE,EAAE;QAC3B,IAAG,cAAc,KAAK,QAAQ;YAAE,OAAO;QAEvC,IAAG,iBAAiB,CAAC,YAAY,EAAC;YAC9B,MAAM,cAAc,GAAG,kBAAS,CAAC,iBAAiB,CAAC,YAAY,EAAE,CAAC,cAAc,EAAC,EAAE,CAAA,SAAS,CAAC,cAAc,CAAC,CAAC,CAAC;YAC9G,OAAO,eAAM,CAAC,EAAE,EAAE,iBAAiB,CAAC,IAAI,EAAE,cAAc,CAAC,CAAC;SAC7D;QACD,OAAO,iBAAiB,CAAC,IAAI,CAAC;IAClC,CAAC,EAAE,CAAC,iBAAiB,CAAC,IAAI,EAAE,iBAAiB,CAAC,YAAY,EAAE,SAAS,CAAC,CAAC,CAAC;IAExE,QAAO,cAAc,EAAC;QAClB,KAAK,QAAQ;YACT,OAAO,UAAU,CAAC;QACtB,KAAK,OAAO;YACR,OAAO,YAAG,CAAC,KAAK,EAAE,iBAAiB,CAAC,IAAI,CAAC,CAAC;QAC9C;YACI,OAAO,KAAK,CAAC;KACpB;AACL,CAAC,CAAC;AAjJW,QAAA,aAAa,iBAiJxB"}
@@ -110,7 +110,7 @@ export const useDataSource = (source, options) => {
110
110
  return new Collection(items, {
111
111
  page: get(currentValue, 'page', 0),
112
112
  pageSize: get(currentValue, 'pageSize', 20),
113
- isLoading: !currentValue || get(currentValue, 'isLoading', false),
113
+ isLoading: typeof currentValue === 'undefined' || get(currentValue, 'isLoading', false),
114
114
  isRefreshing: get(currentValue, 'isRefreshing', false),
115
115
  hasMore: get(currentValue, 'hasMore', false),
116
116
  queryString: get(currentValue, 'queryString', ''),
@@ -124,7 +124,7 @@ export const useDataSource = (source, options) => {
124
124
  previous,
125
125
  });
126
126
  }
127
- return currentValue || { isLoading: true };
127
+ return typeof currentValue === 'undefined' ? { isLoading: true } : currentValue;
128
128
  }, [dataSourceName, currentValue, dataSource]);
129
129
  const staticData = useMemo(() => {
130
130
  if (dataSourceName !== 'static')
@@ -1 +1 @@
1
- {"version":3,"file":"useDataSource.js","sourceRoot":"","sources":["../../../../src/hooks/useDataSource.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAoB,QAAQ,EAAW,GAAG,EAAQ,GAAG,EAAE,SAAS,EAAE,IAAI,EAAQ,MAAM,EAAO,UAAU,EAAE,MAAM,QAAQ,CAAC;AACrI,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,EAAE,qBAAqB,EAAE,0BAA0B,EAAE,+BAA+B,EAAE,mCAAmC,EAAe,MAAM,aAAa,CAAC;AACnK,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,WAAW,MAAM,eAAe,CAAC;AACxC,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAgB9C,MAAM,wBAAwB,GAAgC,EAAC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAC,CAAA;AAE5F,MAAM,CAAC,MAAM,aAAa,GAAG,CAAE,MAAkC,EAAG,OAA2B,EAAQ,EAAE;IACrG,MAAM,QAAQ,GAAG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,EAAE,cAAc,CAAC,CAAC;SAC7D;QACD,OAAO,iBAAiB,CAAC,IAAI,CAAC;IAClC,CAAC,EAAE,CAAC,iBAAiB,CAAC,IAAI,EAAE,iBAAiB,CAAC,YAAY,EAAE,SAAS,CAAC,CAAC,CAAC;IAExE,QAAO,cAAc,EAAC;QAClB,KAAK,QAAQ;YACT,OAAO,UAAU,CAAC;QACtB,KAAK,OAAO;YACR,OAAO,GAAG,CAAC,KAAK,EAAE,iBAAiB,CAAC,IAAI,CAAC,CAAC;QAC9C;YACI,OAAO,KAAK,CAAC;KACpB;AACL,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evlop/commons",
3
- "version": "1.0.297",
3
+ "version": "1.0.298",
4
4
  "description": "",
5
5
  "main": "dist/cjs/main.js",
6
6
  "module": "dist/esm/main.js",