@syntrologie/runtime-sdk 2.4.0-canary.21 → 2.4.0-canary.22

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.
@@ -3240,7 +3240,7 @@ function getAntiFlickerSnippet(config = {}) {
3240
3240
  }
3241
3241
 
3242
3242
  // src/version.ts
3243
- var SDK_VERSION = "2.4.0-canary.21";
3243
+ var SDK_VERSION = "2.4.0-canary.22";
3244
3244
 
3245
3245
  // src/types.ts
3246
3246
  var SDK_SCHEMA_VERSION = "2.0";
@@ -5154,7 +5154,8 @@ function useShadowCanvasConfig({
5154
5154
  fetcher,
5155
5155
  experiments,
5156
5156
  runtime: runtime3,
5157
- pageUrl
5157
+ pageUrl,
5158
+ pollIntervalMs
5158
5159
  }) {
5159
5160
  const [state, setState] = useState6({
5160
5161
  tiles: [],
@@ -5209,6 +5210,13 @@ function useShadowCanvasConfig({
5209
5210
  return experiments.onFeaturesChanged(() => load());
5210
5211
  }
5211
5212
  }, [load, experiments, pageUrl]);
5213
+ useEffect8(() => {
5214
+ if (!pollIntervalMs) return;
5215
+ const id = setInterval(() => {
5216
+ load();
5217
+ }, pollIntervalMs);
5218
+ return () => clearInterval(id);
5219
+ }, [load, pollIntervalMs]);
5212
5220
  return useMemo5(() => state, [state]);
5213
5221
  }
5214
5222
 
@@ -10933,4 +10941,4 @@ export {
10933
10941
  encodeToken,
10934
10942
  Syntro
10935
10943
  };
10936
- //# sourceMappingURL=chunk-IPU3WVPY.js.map
10944
+ //# sourceMappingURL=chunk-WCQCVPJ7.js.map