@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.
- package/dist/topbar.js +3 -1
- package/dist/topbar.js.map +1 -1
- package/dist/topbar.modern.js +3 -1
- package/dist/topbar.modern.js.map +1 -1
- package/dist/topbar.module.js +3 -1
- package/dist/topbar.module.js.map +1 -1
- package/dist/topbar.umd.js +3 -1
- package/dist/topbar.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/topbar.js
CHANGED
|
@@ -4606,8 +4606,10 @@ function createPicobotIframe(picobotOrigin) {
|
|
|
4606
4606
|
type: "IFRAME_LOAD_ERROR"
|
|
4607
4607
|
});
|
|
4608
4608
|
}, [onMessage]);
|
|
4609
|
+
const reportLoadErrorRef = React.useRef(reportLoadError);
|
|
4610
|
+
reportLoadErrorRef.current = reportLoadError;
|
|
4609
4611
|
React.useEffect(function armLoadTimeoutOnMount() {
|
|
4610
|
-
const timeout = setTimeout(
|
|
4612
|
+
const timeout = setTimeout(() => reportLoadErrorRef.current(), LOAD_TIMEOUT_MS);
|
|
4611
4613
|
loadTimeoutRef.current = timeout;
|
|
4612
4614
|
return () => clearTimeout(timeout);
|
|
4613
4615
|
}, []);
|