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

Function _assertValueLink

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

Source from the content-addressed store, hash-verified

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;
3483}
3484
3485function _assertCheckedLink(inputProps) {
3486 _assertSingleLink(inputProps);

Callers 1

react.jsFile · 0.85

Calls 2

_assertSingleLinkFunction · 0.85
invariantFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…