@swype-org/react-sdk 0.1.268 → 0.1.269

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/index.cjs CHANGED
@@ -8767,8 +8767,8 @@ function useMobilePollingEffect(deps) {
8767
8767
  const handleVisibility = () => {
8768
8768
  if (document.visibilityState === "visible" && !cancelled) void pollGuestAccount();
8769
8769
  };
8770
- const handlePageShow = (e) => {
8771
- if (e.persisted && !cancelled) void pollGuestAccount();
8770
+ const handlePageShow = () => {
8771
+ if (document.visibilityState === "visible" && !cancelled) void pollGuestAccount();
8772
8772
  };
8773
8773
  document.addEventListener("visibilitychange", handleVisibility);
8774
8774
  window.addEventListener("pageshow", handlePageShow);
@@ -8992,8 +8992,8 @@ function useGuestPreauthMobileRestoreEffect(deps) {
8992
8992
  const handlePollVisibility = () => {
8993
8993
  if (document.visibilityState === "visible" && !cancelled) void pollGuestAccount();
8994
8994
  };
8995
- const handlePollPageShow = (e) => {
8996
- if (e.persisted && !cancelled) void pollGuestAccount();
8995
+ const handlePollPageShow = () => {
8996
+ if (document.visibilityState === "visible" && !cancelled) void pollGuestAccount();
8997
8997
  };
8998
8998
  document.addEventListener("visibilitychange", handlePollVisibility);
8999
8999
  window.addEventListener("pageshow", handlePollPageShow);
@@ -9011,8 +9011,8 @@ function useGuestPreauthMobileRestoreEffect(deps) {
9011
9011
  const onOuterVisibility = () => {
9012
9012
  if (document.visibilityState === "visible") tryStart();
9013
9013
  };
9014
- const onOuterPageShow = (e) => {
9015
- if (e.persisted) tryStart();
9014
+ const onOuterPageShow = () => {
9015
+ if (document.visibilityState === "visible") tryStart();
9016
9016
  };
9017
9017
  tryStart();
9018
9018
  document.addEventListener("visibilitychange", onOuterVisibility);