You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

selectors.js 241B

1234567891011
  1. import { STORE_NAME } from './constants';
  2. /**
  3. * A selector for the internet online status.
  4. *
  5. * @param {Object} state - The redux state.
  6. * @returns {boolean}
  7. */
  8. export function isOnline(state) {
  9. return state[STORE_NAME].isOnline;
  10. }