MCPcopy Create free account
hub / github.com/reactstrap/reactstrap / warnOnce

Function warnOnce

src/utils.js:93–101  ·  view source on GitHub ↗
(message)

Source from the content-addressed store, hash-verified

91let warned = {};
92
93export function warnOnce(message) {
94 if (!warned[message]) {
95 /* istanbul ignore else */
96 if (typeof console !== 'undefined') {
97 console.error(message); // eslint-disable-line no-console
98 }
99 warned[message] = true;
100 }
101}
102
103export function deprecated(propType, explanation) {
104 return function validate(props, propName, componentName, ...rest) {

Callers 2

renderMethod · 0.90
deprecatedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…