@amplifyup/sdk 0.1.29 → 0.1.30

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/react.mjs CHANGED
@@ -440,7 +440,8 @@ function mapResolvedToPageConfig(payload) {
440
440
  meta: {
441
441
  // Stash edge meta for diagnostics (not visitor-facing)
442
442
  description: payload.meta?.degraded ? "degraded" : void 0
443
- }
443
+ },
444
+ ...payload.eventTracking && payload.eventTracking.length > 0 ? { eventTracking: payload.eventTracking } : {}
444
445
  };
445
446
  }
446
447
  function collectDegraded(payload) {
@@ -3308,7 +3309,7 @@ function AmplifyRenderer({
3308
3309
  window.clearTimeout(t1);
3309
3310
  window.clearTimeout(t2);
3310
3311
  };
3311
- }, [pageConfig?.id]);
3312
+ }, [pageConfig?.id, pageConfig?.eventTracking]);
3312
3313
  useEffect(() => {
3313
3314
  if (!pageConfig) return;
3314
3315
  const t = window.setTimeout(() => {