venue-js 1.8.0-next.8 → 1.8.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/README.md +1 -1
- package/dist/data/index.d.mts +0 -1
- package/dist/data/index.d.ts +0 -1
- package/dist/data/index.js +4 -9
- package/dist/data/index.js.map +1 -1
- package/dist/data/index.mjs +4 -9
- package/dist/data/index.mjs.map +1 -1
- package/dist/index.js +4 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -9
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/data/index.d.mts
CHANGED
package/dist/data/index.d.ts
CHANGED
package/dist/data/index.js
CHANGED
|
@@ -196,8 +196,6 @@ var defaultFeatureQueryOptionsMap = {
|
|
|
196
196
|
kiosk: {},
|
|
197
197
|
level: {},
|
|
198
198
|
occupant: {
|
|
199
|
-
refetchInterval: 5 * 60 * 1e3,
|
|
200
|
-
// refresh every 5 min
|
|
201
199
|
staleTime: 5 * 60 * 1e3
|
|
202
200
|
},
|
|
203
201
|
opening: {},
|
|
@@ -210,16 +208,11 @@ var defaultFeatureQueryOptionsMap = {
|
|
|
210
208
|
privilege: {},
|
|
211
209
|
event: {},
|
|
212
210
|
promotion: {
|
|
213
|
-
refetchInterval: 0.5 * 60 * 1e3,
|
|
214
|
-
// refresh every 5 min
|
|
215
211
|
staleTime: 0.5 * 60 * 1e3
|
|
216
212
|
},
|
|
217
213
|
label: {},
|
|
218
214
|
// NON GEOJSON
|
|
219
|
-
"sponsored-content": {
|
|
220
|
-
refetchInterval: 1 * 60 * 1e3
|
|
221
|
-
// refresh every 5 min
|
|
222
|
-
},
|
|
215
|
+
"sponsored-content": {},
|
|
223
216
|
element: {},
|
|
224
217
|
page: {},
|
|
225
218
|
model3d: {}
|
|
@@ -3169,6 +3162,8 @@ var getDataClient = (options) => {
|
|
|
3169
3162
|
if (!record) return;
|
|
3170
3163
|
record.unsubscribe();
|
|
3171
3164
|
observers.delete(featureType);
|
|
3165
|
+
const baseline = refetchIntervals?.[featureType];
|
|
3166
|
+
if (baseline) registerObserver(featureType, baseline);
|
|
3172
3167
|
};
|
|
3173
3168
|
const destroyObservers = () => {
|
|
3174
3169
|
observers.forEach(({ observer, unsubscribe }) => {
|
|
@@ -3193,7 +3188,7 @@ var getDataClient = (options) => {
|
|
|
3193
3188
|
return params.populate === true ? await Promise.all(result.map((f) => populator[featureType](f))) : result;
|
|
3194
3189
|
},
|
|
3195
3190
|
...options2 ?? {},
|
|
3196
|
-
refetchInterval:
|
|
3191
|
+
refetchInterval: refetchIntervals?.[featureType]
|
|
3197
3192
|
});
|
|
3198
3193
|
const createFindByIdQueryOptions = (featureType, id, params = {}, options2 = {}) => ({
|
|
3199
3194
|
queryKey: [featureType, "detail", id, params],
|