PHP 8.2.30
Preview: verifySubselectors.js Size: 883 B
/proc/thread-self/root/home/byroehnu/.trash/node_modules11/react-redux/lib/connect/verifySubselectors.js

"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

exports.__esModule = true;
exports.default = verifySubselectors;

var _warning = _interopRequireDefault(require("../utils/warning"));

function verify(selector, methodName) {
  if (!selector) {
    throw new Error(`Unexpected value for ${methodName} in connect.`);
  } else if (methodName === 'mapStateToProps' || methodName === 'mapDispatchToProps') {
    if (!Object.prototype.hasOwnProperty.call(selector, 'dependsOnOwnProps')) {
      (0, _warning.default)(`The selector for ${methodName} of connect did not specify a value for dependsOnOwnProps.`);
    }
  }
}

function verifySubselectors(mapStateToProps, mapDispatchToProps, mergeProps) {
  verify(mapStateToProps, 'mapStateToProps');
  verify(mapDispatchToProps, 'mapDispatchToProps');
  verify(mergeProps, 'mergeProps');
}

Directory Contents

Dirs: 0 × Files: 7

Name Size Perms Modified Actions
328 B lrw-r--r-- 2026-02-28 00:28:28
Edit Download
998 B lrw-r--r-- 2026-02-28 00:28:36
Edit Download
567 B lrw-r--r-- 2026-02-28 00:28:38
Edit Download
1.58 KB lrw-r--r-- 2026-02-28 00:28:42
Edit Download
3.54 KB lrw-r--r-- 2026-02-28 00:29:02
Edit Download
883 B lrw-r--r-- 2026-02-28 00:29:32
Edit Download
3.29 KB lrw-r--r-- 2026-02-28 00:29:36
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).