You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`timeout`: amount of time (in ms) that the component should wait for the ping response. Defaults to 3s.
88
88
89
-
`pingServerUrl`: remote server to ping to. It defaults to http://www.google.com/ since it's probably one the most stable servers out there, but you can provide your own if needed.
89
+
`pingServerUrl`: remote server to ping to. It defaults to https://www.google.com/ since it's probably one the most stable servers out there, but you can provide your own if needed.
90
90
91
91
`withExtraHeadRequest`: flag that denotes whether the extra ping check will be performed or not. Defaults to `true`.
92
92
@@ -119,7 +119,7 @@ React component that accepts a function as children. It allows you to decouple y
This is the setup you need to put in place for libraries such as `redux-saga` or `redux-observable`, which rely on plain actions being dispatched to trigger async flow:
267
267
268
268
`regexActionType`: regular expression to indicate the action types to be intercepted in offline mode.
269
-
By default it's configured to intercept actions for fetching data following the Redux [convention](http://redux.js.org/docs/advanced/AsyncActions.html). That means that it will intercept actions with types such as `FETCH_USER_ID_REQUEST`, `FETCH_PRODUCTS_REQUEST` etc.
269
+
By default it's configured to intercept actions for fetching data following the Redux [convention](https://redux.js.org/docs/advanced/AsyncActions.html). That means that it will intercept actions with types such as `FETCH_USER_ID_REQUEST`, `FETCH_PRODUCTS_REQUEST` etc.
270
270
271
271
`actionTypes`: array with additional action types to intercept that don't fulfil the RegExp criteria. For instance, it's useful for actions that carry along refreshing data, such as `REFRESH_LIST`.
272
272
@@ -419,7 +419,7 @@ fetchData.meta = {
419
419
Utility function that allows you to query for internet connectivity on demand. If you have integrated this library with redux, you can then dispatch a `CONNECTION_CHANGE` action type to inform the `network` reducer accordingly and keep it up to date. Check the example below.
420
420
421
421
```js
422
-
checkInternetConnection(timeout?: number =3000, url?: string ='http://www.google.com/'):Promise<boolean>
422
+
checkInternetConnection(timeout?: number =3000, url?: string ='https://www.google.com/'):Promise<boolean>
0 commit comments