magiclabs / magic-js

Magic browser/React Native JavaScript SDK is your entry-point to integrating passwordless authentication inside your application.
https://magic.link/docs/api-reference/client-side-sdks/web
Apache License 2.0
457 stars 85 forks source link

Add `useInternetConnection` hook to track internet connectivity changes #665

Closed romin-halltari closed 10 months ago

romin-halltari commented 10 months ago

📦 Pull Request

[Provide a general summary of the pull request here.]

✅ Fixed Issues

🚨 Test instructions

[Describe any additional context required to test the PR/feature/bug fix.]

⚠️ Don't forget to add a semver label!

Please only add one label:

📦 Published PR as canary version: Canary Versions
:sparkles: Test out this PR locally via: ```bash npm install @magic-ext/algorand@16.3.0-canary.665.6934462457.0 npm install @magic-ext/aptos@4.3.0-canary.665.6934462457.0 npm install @magic-ext/auth@4.3.0-canary.665.6934462457.0 npm install @magic-ext/avalanche@16.3.0-canary.665.6934462457.0 npm install @magic-ext/bitcoin@16.3.0-canary.665.6934462457.0 npm install @magic-ext/conflux@14.3.0-canary.665.6934462457.0 npm install @magic-ext/cosmos@16.3.0-canary.665.6934462457.0 npm install @magic-ext/ed25519@12.3.0-canary.665.6934462457.0 npm install @magic-ext/flow@16.3.0-canary.665.6934462457.0 npm install @magic-ext/gdkms@4.3.0-canary.665.6934462457.0 npm install @magic-ext/harmony@16.3.0-canary.665.6934462457.0 npm install @magic-ext/icon@16.3.0-canary.665.6934462457.0 npm install @magic-ext/near@16.3.0-canary.665.6934462457.0 npm install @magic-ext/oauth@15.3.0-canary.665.6934462457.0 npm install @magic-ext/oidc@4.3.0-canary.665.6934462457.0 npm install @magic-ext/polkadot@16.3.0-canary.665.6934462457.0 npm install @magic-ext/react-native-bare-oauth@17.1.0-canary.665.6934462457.0 npm install @magic-ext/react-native-expo-oauth@17.1.0-canary.665.6934462457.0 npm install @magic-ext/solana@18.1.0-canary.665.6934462457.0 npm install @magic-ext/taquito@13.3.0-canary.665.6934462457.0 npm install @magic-ext/terra@13.3.0-canary.665.6934462457.0 npm install @magic-ext/tezos@16.3.0-canary.665.6934462457.0 npm install @magic-ext/webauthn@15.3.0-canary.665.6934462457.0 npm install @magic-ext/zilliqa@16.3.0-canary.665.6934462457.0 npm install @magic-sdk/commons@17.3.0-canary.665.6934462457.0 npm install @magic-sdk/pnp@15.3.0-canary.665.6934462457.0 npm install @magic-sdk/provider@21.3.0-canary.665.6934462457.0 npm install @magic-sdk/react-native-bare@22.3.0-canary.665.6934462457.0 npm install @magic-sdk/react-native-expo@22.3.0-canary.665.6934462457.0 npm install magic-sdk@21.3.0-canary.665.6934462457.0 # or yarn add @magic-ext/algorand@16.3.0-canary.665.6934462457.0 yarn add @magic-ext/aptos@4.3.0-canary.665.6934462457.0 yarn add @magic-ext/auth@4.3.0-canary.665.6934462457.0 yarn add @magic-ext/avalanche@16.3.0-canary.665.6934462457.0 yarn add @magic-ext/bitcoin@16.3.0-canary.665.6934462457.0 yarn add @magic-ext/conflux@14.3.0-canary.665.6934462457.0 yarn add @magic-ext/cosmos@16.3.0-canary.665.6934462457.0 yarn add @magic-ext/ed25519@12.3.0-canary.665.6934462457.0 yarn add @magic-ext/flow@16.3.0-canary.665.6934462457.0 yarn add @magic-ext/gdkms@4.3.0-canary.665.6934462457.0 yarn add @magic-ext/harmony@16.3.0-canary.665.6934462457.0 yarn add @magic-ext/icon@16.3.0-canary.665.6934462457.0 yarn add @magic-ext/near@16.3.0-canary.665.6934462457.0 yarn add @magic-ext/oauth@15.3.0-canary.665.6934462457.0 yarn add @magic-ext/oidc@4.3.0-canary.665.6934462457.0 yarn add @magic-ext/polkadot@16.3.0-canary.665.6934462457.0 yarn add @magic-ext/react-native-bare-oauth@17.1.0-canary.665.6934462457.0 yarn add @magic-ext/react-native-expo-oauth@17.1.0-canary.665.6934462457.0 yarn add @magic-ext/solana@18.1.0-canary.665.6934462457.0 yarn add @magic-ext/taquito@13.3.0-canary.665.6934462457.0 yarn add @magic-ext/terra@13.3.0-canary.665.6934462457.0 yarn add @magic-ext/tezos@16.3.0-canary.665.6934462457.0 yarn add @magic-ext/webauthn@15.3.0-canary.665.6934462457.0 yarn add @magic-ext/zilliqa@16.3.0-canary.665.6934462457.0 yarn add @magic-sdk/commons@17.3.0-canary.665.6934462457.0 yarn add @magic-sdk/pnp@15.3.0-canary.665.6934462457.0 yarn add @magic-sdk/provider@21.3.0-canary.665.6934462457.0 yarn add @magic-sdk/react-native-bare@22.3.0-canary.665.6934462457.0 yarn add @magic-sdk/react-native-expo@22.3.0-canary.665.6934462457.0 yarn add magic-sdk@21.3.0-canary.665.6934462457.0 ```
shortcut-integration[bot] commented 10 months ago

This pull request has been linked to Shortcut Story #75722: [React Native SDK] Add support for general connectivity error from Relayer <:> RN Package.

Ariflo commented 10 months ago

:rocket: PR was released in @magic-ext/algorand@16.3.0, @magic-ext/aptos@4.3.0, @magic-ext/auth@4.3.0, @magic-ext/avalanche@16.3.0, @magic-ext/bitcoin@16.3.0, @magic-ext/conflux@14.3.0, @magic-ext/cosmos@16.3.0, @magic-ext/ed25519@12.3.0, @magic-ext/flow@16.3.0, @magic-ext/gdkms@4.3.0, @magic-ext/harmony@16.3.0, @magic-ext/icon@16.3.0, @magic-ext/near@16.3.0, @magic-ext/oauth@15.3.0, @magic-ext/oidc@4.3.0, @magic-ext/polkadot@16.3.0, @magic-ext/react-native-bare-oauth@17.1.0, @magic-ext/react-native-expo-oauth@17.1.0, @magic-ext/solana@18.1.0, @magic-ext/taquito@13.3.0, @magic-ext/terra@13.3.0, @magic-ext/tezos@16.3.0, @magic-ext/webauthn@15.3.0, @magic-ext/zilliqa@16.3.0, @magic-sdk/commons@17.3.0, @magic-sdk/pnp@15.3.0, @magic-sdk/provider@21.3.0, @magic-sdk/react-native-bare@22.3.0, @magic-sdk/react-native-expo@22.3.0, magic-sdk@21.3.0 :rocket: