@orderingstack/front-hooks 2.1.0 → 2.2.0
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/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +1 -1
- package/dist/index.es.js.map +1 -1
- package/dist/src/useCms.d.ts +1 -0
- package/dist/src/useCms.d.ts.map +1 -1
- package/package.json +45 -45
package/dist/index.es.js
CHANGED
|
@@ -3077,7 +3077,7 @@ function useCms(id, intervalSeconds = 600, withLocalStorage = true, baseUrl, ten
|
|
|
3077
3077
|
}
|
|
3078
3078
|
}, []);
|
|
3079
3079
|
useInterval(getCms, intervalSeconds * 1e3);
|
|
3080
|
-
return { value: state, isError: error };
|
|
3080
|
+
return { value: state, isError: error, isLoading: !error && !state };
|
|
3081
3081
|
}
|
|
3082
3082
|
function useVenueCms(id, intervalSeconds = 600, withLocalStorage = true, baseUrl, tenant, venue) {
|
|
3083
3083
|
var _a, _b, _c, _d;
|