Gathering detailed insights and metrics for redux-online-status
Gathering detailed insights and metrics for redux-online-status
Gathering detailed insights and metrics for redux-online-status
Gathering detailed insights and metrics for redux-online-status
redux-offline-status
Redux middleware for tracking whether an application should behave offline or online. Uses network requests to determine network status, which is more reliable than navigator.onLine. Configurable to manage state for connections to multiple servers beyond
redux-browser-status
A simple store enhancer to check if your internet connection is online or offline
redux-if-offline
Simple redux middleware and reducer to keep track of navigator online/offline status
npm install redux-online-status
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
1 Stars
17 Commits
1 Watchers
1 Branches
1 Contributors
Updated on Jul 26, 2019
Latest Version
1.1.2
Package Id
redux-online-status@1.1.2
Unpacked Size
7.91 kB
Size
2.49 kB
File Count
6
NPM Version
5.3.0
Node Version
8.3.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
Online status enhancer for Redux.
1yarn add redux-online-status 2 3# or 4 5npm i redux-online-status
example with react-notification-system-redux.
1// store 2import { createStore, applyMiddleware, compose } from 'redux' 3import createOnlineStatusEnhancer from 'redux-online-status' 4 5const store = createStore( 6 rootReducer, 7 initialState, 8 compose( 9 createOnlineStatusEnhancer(), 10 applyMiddleware(...middlewares) 11 ) 12) 13 14// reducer 15import { combineReducers } from 'redux' 16import { reducer as online } from 'redux-online-status' 17import { reducer as notifications } from 'react-notification-system-redux' 18 19export default combineReducers({ 20 online, 21 notifications, 22}) 23 24// container component 25import React, { PureComponent } from 'react' 26import NotificationSystem, { warning, hide } from 'react-notification-system-redux' 27import { connect } from 'react-redux' 28 29@connect(({ notifications, online }) => ({ notifications, online })) 30export default class Notifications extends PureComponent { 31 componentWillReceiveProps(nextProps) { 32 if (this.props.online === true && nextProps.online === false) { 33 warning({ uid: 'OFFLINE', message: 'Your computer seems to be offline.', autoDismiss: 0, dismissible: false }) 34 } 35 if (this.props.online === false && nextProps.online === true) { 36 hide('OFFLINE') 37 } 38 } 39 render() { 40 return <NotificationSystem notifications={this.props.notifications} /> 41 } 42}
© sugarshin
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/13 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
80 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-06-30
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More