MCPcopy Create free account
hub / github.com/Lobos/react-ui / _assertSingleLink

Function _assertSingleLink

docs/lib/react.js:3477–3479  ·  view source on GitHub ↗
(inputProps)

Source from the content-addressed store, hash-verified

3475};
3476
3477function _assertSingleLink(inputProps) {
3478 !(inputProps.checkedLink == null || inputProps.valueLink == null) ? "development" !== 'production' ? invariant(false, 'Cannot provide a checkedLink and a valueLink. If you want to use ' + 'checkedLink, you probably don\'t want to use valueLink and vice versa.') : invariant(false) : void 0;
3479}
3480function _assertValueLink(inputProps) {
3481 _assertSingleLink(inputProps);
3482 !(inputProps.value == null && inputProps.onChange == null) ? "development" !== 'production' ? invariant(false, 'Cannot provide a valueLink and a value or onChange event. If you want ' + 'to use value or onChange, you probably don\'t want to use valueLink.') : invariant(false) : void 0;

Callers 2

_assertValueLinkFunction · 0.85
_assertCheckedLinkFunction · 0.85

Calls 1

invariantFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…