We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6367a1b commit b17da68Copy full SHA for b17da68
1 file changed
lib/src/store.ts
@@ -339,6 +339,11 @@ export class Store {
339
* not be performed client side when offline.
340
*/
341
public isOffline(): boolean {
342
+ // If we are in a node/server environment assume we are online.
343
+ if (typeof window === 'undefined') {
344
+ return false;
345
+ }
346
+
347
return !window?.navigator?.onLine;
348
}
349
0 commit comments