UNPKG

react-redux-isomorphic

Version:

Set of utilities for creating isomorphic applications using react-redux

15 lines 604 B
import PropTypes from 'prop-types'; export var isomorphicIdPropTypes = PropTypes.oneOfType([PropTypes.string, PropTypes.number]); export var isomorphicPropTypes = function isomorphicPropTypes(_ref) { var _ref$context = _ref.context, context = _ref$context === void 0 ? PropTypes.any : _ref$context, _ref$error = _ref.error, error = _ref$error === void 0 ? PropTypes.any : _ref$error; return PropTypes.shape({ isReady: PropTypes.bool.isRequired, isLoading: PropTypes.bool.isRequired, isReloading: PropTypes.bool.isRequired, context: context, error: error }); };