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

import warning from '../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')) {
      warning(`The selector for ${methodName} of connect did not specify a value for dependsOnOwnProps.`);
    }
  }
}

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

Directory Contents

Dirs: 0 × Files: 14

Name Size Perms Modified Actions
233 B lrw-r--r-- 2026-02-28 00:29:48
Edit Download
233 B lrw-r--r-- 2026-02-28 00:28:28
Edit Download
1.30 KB lrw-r--r-- 2026-02-28 00:29:54
Edit Download
714 B lrw-r--r-- 2026-02-28 00:28:34
Edit Download
1.35 KB lrw-r--r-- 2026-02-28 00:29:54
Edit Download
440 B lrw-r--r-- 2026-02-28 00:28:36
Edit Download
1.21 KB lrw-r--r-- 2026-02-28 00:29:56
Edit Download
1.23 KB lrw-r--r-- 2026-02-28 00:28:38
Edit Download
4.67 KB lrw-r--r-- 2026-02-28 00:29:58
Edit Download
3.24 KB lrw-r--r-- 2026-02-28 00:29:02
Edit Download
127 B lrw-r--r-- 2026-02-28 00:30:10
Edit Download
688 B lrw-r--r-- 2026-02-28 00:29:32
Edit Download
1.40 KB lrw-r--r-- 2026-02-28 00:30:12
Edit Download
2.98 KB lrw-r--r-- 2026-02-28 00:29:34
Edit Download

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