@planningcenter/topbar 12.2.0-rc.1 → 12.2.0-rc.2

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.
@@ -4582,8 +4582,10 @@ function createPicobotIframe(picobotOrigin) {
4582
4582
  type: "IFRAME_LOAD_ERROR"
4583
4583
  });
4584
4584
  }, [onMessage]);
4585
+ const reportLoadErrorRef = React__default.useRef(reportLoadError);
4586
+ reportLoadErrorRef.current = reportLoadError;
4585
4587
  React__default.useEffect(function armLoadTimeoutOnMount() {
4586
- const timeout = setTimeout(reportLoadError, LOAD_TIMEOUT_MS);
4588
+ const timeout = setTimeout(() => reportLoadErrorRef.current(), LOAD_TIMEOUT_MS);
4587
4589
  loadTimeoutRef.current = timeout;
4588
4590
  return () => clearTimeout(timeout);
4589
4591
  }, []);